From bf4b8ba8d7fb5e3ff5e015fa86af4b3aac3e3014 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Mon, 9 Jul 2007 15:31:46 +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: r126484 --- 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 0e301ae0b0b0..741a8ad6ec1f 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 48e4433c6732..5b4a9a33c0be 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