diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-17 05:56:15 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-17 05:56:15 +0000 |
commit | f259ef2dde37cdc1994ab89de4202de11db1758d (patch) | |
tree | fa16d409fa166f36caaced4b9b18b5c11655a10f /gcc/tree-ssa-loop-niter.c | |
parent | f901aa342fec3c1daf7be7c1f6258571542389b1 (diff) | |
download | gcc-f259ef2dde37cdc1994ab89de4202de11db1758d.tar.gz |
2008-05-17 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r135459
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@135460 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
-rw-r--r-- | gcc/tree-ssa-loop-niter.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c index 40e7051c265..934afa78d7d 100644 --- a/gcc/tree-ssa-loop-niter.c +++ b/gcc/tree-ssa-loop-niter.c @@ -1437,8 +1437,7 @@ expand_simple_operations (tree expr) e = GIMPLE_STMT_OPERAND (stmt, 1); if (/* Casts are simple. */ - TREE_CODE (e) != NOP_EXPR - && TREE_CODE (e) != CONVERT_EXPR + !CONVERT_EXPR_P (e) /* Copies are simple. */ && TREE_CODE (e) != SSA_NAME /* Assignments of invariants are simple. */ @@ -2190,8 +2189,7 @@ derive_constant_upper_bound (const_tree val) case INTEGER_CST: return tree_to_double_int (val); - case NOP_EXPR: - case CONVERT_EXPR: + CASE_CONVERT: op0 = TREE_OPERAND (val, 0); subtype = TREE_TYPE (op0); if (!TYPE_UNSIGNED (subtype) |