aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-scalar-evolution.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2005-05-16 04:36:09 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2005-05-16 04:36:09 +0000
commit94a3e63aca7046a958925c13d094234d3e7421b3 (patch)
tree7d1d7246dd3c847c51837e7d52c7dd222df2c14c /gcc/tree-scalar-evolution.c
parent21e43850583de699a759686dbcc143841221d738 (diff)
downloadgcc-94a3e63aca7046a958925c13d094234d3e7421b3.zip
gcc-94a3e63aca7046a958925c13d094234d3e7421b3.tar.gz
gcc-94a3e63aca7046a958925c13d094234d3e7421b3.tar.bz2
tree-scalar-evolution.c (set_nb_iterations_in_loop): Only check for TREE_OVERFLOW on INTEGER_CST trees.
* tree-scalar-evolution.c (set_nb_iterations_in_loop): Only check for TREE_OVERFLOW on INTEGER_CST trees. * tree-chrec.c (chrec_convert): Only clear TREE_OVERFLOW on CONSTANT_CLASS_P tree nodes. From-SVN: r99765
Diffstat (limited to 'gcc/tree-scalar-evolution.c')
-rw-r--r--gcc/tree-scalar-evolution.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-scalar-evolution.c b/gcc/tree-scalar-evolution.c
index e0ef0ee..4019f78 100644
--- a/gcc/tree-scalar-evolution.c
+++ b/gcc/tree-scalar-evolution.c
@@ -922,8 +922,9 @@ set_nb_iterations_in_loop (struct loop *loop,
count of the loop in order to be compatible with the other
nb_iter computations in loop-iv. This also allows the
representation of nb_iters that are equal to MAX_INT. */
- if ((TREE_CODE (res) == INTEGER_CST && TREE_INT_CST_LOW (res) == 0)
- || TREE_OVERFLOW (res))
+ if (TREE_CODE (res) == INTEGER_CST
+ && (TREE_INT_CST_LOW (res) == 0
+ || TREE_OVERFLOW (res)))
res = chrec_dont_know;
if (dump_file && (dump_flags & TDF_DETAILS))