summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-ivopts.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-11 09:16:59 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-11 09:16:59 +0000
commit3d52839bc741976a6514456e0e8659409b24dc63 (patch)
treeee07a2f5b57885b948e937096a68f501448851ae /gcc/tree-ssa-loop-ivopts.c
parentaaa23d72642e0c995287f47416a03b1108e2c449 (diff)
downloadgcc-3d52839bc741976a6514456e0e8659409b24dc63.tar.gz
* tree-ssa-loop-ivopts.c (prepare_decl_rtl) <ADDR_EXPR>: Generate RTL
only for a DECL which HAS_RTL_P. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194387 138bc75d-0d04-0410-961f-82ee72b054a4
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 ed1317080ea..1e41fa94a73 100644
--- a/gcc/tree-ssa-loop-ivopts.c
+++ b/gcc/tree-ssa-loop-ivopts.c
@@ -2806,7 +2806,7 @@ prepare_decl_rtl (tree *expr_p, int *ws, void *data)
expr_p = &TREE_OPERAND (*expr_p, 0))
continue;
obj = *expr_p;
- if (DECL_P (obj) && !DECL_RTL_SET_P (obj))
+ if (DECL_P (obj) && HAS_RTL_P (obj) && !DECL_RTL_SET_P (obj))
x = produce_memory_decl_rtl (obj, regno);
break;