summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-niter.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-18 14:02:17 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-18 14:02:17 +0000
commitffb04365079f363ebc6ad5d045f575b5522c9c2e (patch)
tree34274bc646f8291660cba602b593b220e0f0b0e1 /gcc/tree-ssa-loop-niter.c
parent0c378ed95e3993e9fc0bd7a09bd4bec7e92297f7 (diff)
downloadgcc-ffb04365079f363ebc6ad5d045f575b5522c9c2e.tar.gz
2008-03-18 Richard Guenther <rguenther@suse.de>
* tree-gimple.h (is_gimple_invariant_address): Declare. (is_gimple_constant): Likewise. * tree-gimple.c (is_gimple_constant): New function. (is_gimple_invariant_address): Likewise. (is_gimple_min_invariant): Implement in terms of is_gimple_constant and is_gimple_invariant_address. * tree-ssa-loop-niter.c (expand_simple_operations): Revert previous change. * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not an addressable base. * gcc.dg/tree-ssa/loop-19.c: Revert previous change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133311 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
-rw-r--r--gcc/tree-ssa-loop-niter.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c
index 0696342bd1b..40e7051c265 100644
--- a/gcc/tree-ssa-loop-niter.c
+++ b/gcc/tree-ssa-loop-niter.c
@@ -1436,10 +1436,6 @@ expand_simple_operations (tree expr)
return expr;
e = GIMPLE_STMT_OPERAND (stmt, 1);
- /* Do not expand random invariants. */
- if (TREE_INVARIANT (e)
- && !is_gimple_min_invariant (e))
- return expr;
if (/* Casts are simple. */
TREE_CODE (e) != NOP_EXPR
&& TREE_CODE (e) != CONVERT_EXPR