Commit b57d8e6f by Richard Guenther Committed by Richard Biener

tree-complex.c (expand_complex_div_wide): Check for INTEGER_CST, not…

tree-complex.c (expand_complex_div_wide): Check for INTEGER_CST, not TREE_CONSTANT on comparison folding result.

2009-10-27  Richard Guenther  <rguenther@suse.de>

	* tree-complex.c (expand_complex_div_wide): Check for
	INTEGER_CST, not TREE_CONSTANT on comparison folding result.

From-SVN: r153598
parent 65a07a30
2009-10-27 Richard Guenther <rguenther@suse.de>
* tree-complex.c (expand_complex_div_wide): Check for
INTEGER_CST, not TREE_CONSTANT on comparison folding result.
2009-10-27 Revital Eres <eres@il.ibm.com> 2009-10-27 Revital Eres <eres@il.ibm.com>
PR tree-optimization/40648 PR tree-optimization/40648
...@@ -1114,12 +1114,12 @@ expand_complex_div_wide (gimple_stmt_iterator *gsi, tree inner_type, ...@@ -1114,12 +1114,12 @@ expand_complex_div_wide (gimple_stmt_iterator *gsi, tree inner_type,
t1 = gimplify_build1 (gsi, ABS_EXPR, inner_type, br); t1 = gimplify_build1 (gsi, ABS_EXPR, inner_type, br);
t2 = gimplify_build1 (gsi, ABS_EXPR, inner_type, bi); t2 = gimplify_build1 (gsi, ABS_EXPR, inner_type, bi);
compare = fold_build2_loc (gimple_location (gsi_stmt (*gsi)), compare = fold_build2_loc (gimple_location (gsi_stmt (*gsi)),
LT_EXPR, boolean_type_node, t1, t2); LT_EXPR, boolean_type_node, t1, t2);
STRIP_NOPS (compare); STRIP_NOPS (compare);
bb_cond = bb_true = bb_false = bb_join = NULL; bb_cond = bb_true = bb_false = bb_join = NULL;
rr = ri = tr = ti = NULL; rr = ri = tr = ti = NULL;
if (!TREE_CONSTANT (compare)) if (TREE_CODE (compare) != INTEGER_CST)
{ {
edge e; edge e;
gimple stmt; gimple stmt;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment