Skip self-dependencies in ifconv
authorAndreas Zwinkau <zwinkau@kit.edu>
Tue, 15 Mar 2011 15:58:45 +0000 (16:58 +0100)
committerAndreas Zwinkau <zwinkau@kit.edu>
Tue, 15 Mar 2011 16:57:57 +0000 (17:57 +0100)
Fixes C/unkept_loop.c and opt/fehler159.c

ir/opt/ifconv.c

index d6768a6..714d4cf 100644 (file)
@@ -294,6 +294,8 @@ restart:
                        ir_node* cond;
                        int j;
 
                        ir_node* cond;
                        int j;
 
+                       if (dependency == block) continue;
+
                        if (projx0 == NULL) continue;
 
                        cond = get_Proj_pred(projx0);
                        if (projx0 == NULL) continue;
 
                        cond = get_Proj_pred(projx0);