summaryrefslogtreecommitdiff
path: root/gcc/tree-predcom.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-predcom.c')
-rw-r--r--gcc/tree-predcom.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-predcom.c b/gcc/tree-predcom.c
index 0270e35885c..ab987f4049a 100644
--- a/gcc/tree-predcom.c
+++ b/gcc/tree-predcom.c
@@ -733,6 +733,9 @@ split_data_refs_to_components (struct loop *loop,
just fail. */
goto end;
}
+ /* predcom pass isn't prepared to handle calls with data references. */
+ if (is_gimple_call (DR_STMT (dr)))
+ goto end;
dr->aux = (void *) (size_t) i;
comp_father[i] = i;
comp_size[i] = 1;