aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-ivopts.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2008-10-07 17:27:23 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2008-10-07 17:27:23 +0000
commitcf9322ca65565fafdaf789132dd79f509b86ab87 (patch)
tree41fce5db230dcc69de1ed2f9937153ea110ccedc /gcc/tree-ssa-loop-ivopts.c
parentd208e2d24231243d8de97e471e85499a84725cf7 (diff)
downloadgcc-cf9322ca65565fafdaf789132dd79f509b86ab87.zip
gcc-cf9322ca65565fafdaf789132dd79f509b86ab87.tar.gz
gcc-cf9322ca65565fafdaf789132dd79f509b86ab87.tar.bz2
tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Return true for non-addressable GIMPLE operands.
* tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <VIEW_CONVERT_EXPR>: Return true for non-addressable GIMPLE operands. From-SVN: r140941
Diffstat (limited to 'gcc/tree-ssa-loop-ivopts.c')
-rw-r--r--gcc/tree-ssa-loop-ivopts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c
index 4639588..c924a76 100644
--- a/gcc/tree-ssa-loop-ivopts.c
+++ b/gcc/tree-ssa-loop-ivopts.c
@@ -1558,7 +1558,7 @@ may_be_nonaddressable_p (tree expr)
non-addressability may be uncovered again, causing ADDR_EXPRs
of inappropriate objects to be built. */
if (is_gimple_reg (TREE_OPERAND (expr, 0))
- || is_gimple_min_invariant (TREE_OPERAND (expr, 0)))
+ || !is_gimple_addressable (TREE_OPERAND (expr, 0)))
return true;
/* ... fall through ... */