summaryrefslogtreecommitdiff
path: root/gcc/tree-complex.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-10-27 15:16:35 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-10-27 15:16:35 +0000
commitb57d8e6f0c9b54102f8c96798e652283ca603814 (patch)
tree92c687e0289c6768a9ba925bf7be32ff62dde92e /gcc/tree-complex.c
parent65a07a30aa7cf0ac4fc0b7f9643d7a2b28f7f1c6 (diff)
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
Diffstat (limited to 'gcc/tree-complex.c')
-rw-r--r--gcc/tree-complex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c
index 199f1dcf54c..5108e07cd48 100644
--- a/gcc/tree-complex.c
+++ b/gcc/tree-complex.c
@@ -1114,12 +1114,12 @@ expand_complex_div_wide (gimple_stmt_iterator *gsi, tree inner_type,
t1 = gimplify_build1 (gsi, ABS_EXPR, inner_type, br);
t2 = gimplify_build1 (gsi, ABS_EXPR, inner_type, bi);
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);
bb_cond = bb_true = bb_false = bb_join = NULL;
rr = ri = tr = ti = NULL;
- if (!TREE_CONSTANT (compare))
+ if (TREE_CODE (compare) != INTEGER_CST)
{
edge e;
gimple stmt;