From dafdaa7fe2d3f658408e09b04402e96868336b6c Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Mon, 9 Jul 2007 15:11:22 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/tree-if-conv.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 2.47.2