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
This commit is contained in:
Uros Bizjak
2007-07-09 15:31:46 +02:00
committed by Uros Bizjak
parent ef29b199c1
commit bf4b8ba8d7
2 changed files with 7 additions and 1 deletions

View 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

View 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