From: Uros Bizjak Date: Mon, 9 Jul 2007 13:11:22 +0000 (+0200) Subject: re PR tree-optimization/32681 (ice for legal C code with flags -ffast-math -O3 ... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dafdaa7fe2d3f658408e09b04402e96868336b6c;p=thirdparty%2Fgcc.git re PR tree-optimization/32681 (ice for legal C code with flags -ffast-math -O3 -ftree-vectorize) 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bbdac56ab70a..4543aa95ac70 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-07-09 Uros Bizjak + + 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 PR target/31331 diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c index 77da47959144..006d3dba23bf 100644 --- a/gcc/tree-if-conv.c +++ b/gcc/tree-if-conv.c @@ -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