]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/32681 (ice for legal C code with flags -ffast-math -O3 ...
authorUros Bizjak <ubizjak@gmail.com>
Mon, 9 Jul 2007 13:11:22 +0000 (15:11 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 9 Jul 2007 13:11:22 +0000 (15:11 +0200)
PR tree-optimization/32681
* tree-if-conv.c (find_phi_replacement_condition): Use the condition
saved in second_edge->aux when first_bb is a loop header.

From-SVN: r126483

gcc/ChangeLog
gcc/tree-if-conv.c

index bbdac56ab70a0431451fc14fe0b339a302f980a2..4543aa95ac70e949fbdcd74ce73bd988a86635a6 100644 (file)
@@ -1,3 +1,9 @@
+2007-07-09  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR tree-optimization/32681
+       * tree-if-conv.c (find_phi_replacement_condition): Use the condition
+       saved in second_edge->aux when first_bb is a loop header.
+
 2007-07-07 Anatoly Sokolov <aesok@post.ru>
 
        PR target/31331
index 77da479591444241066f1451ec981eed3d87ca91..006d3dba23bfac4700db6237c6732dfc17878ce1 100644 (file)
@@ -738,7 +738,7 @@ find_phi_replacement_condition (struct loop *loop,
         AND it with the incoming bb predicate.  */
       if (second_edge->aux)
        *cond = build2 (TRUTH_AND_EXPR, boolean_type_node,
-                       *cond, first_edge->aux);
+                       *cond, second_edge->aux);
 
       if (TREE_CODE (*cond) == TRUTH_NOT_EXPR)
        /* We can be smart here and choose inverted