aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-predcom.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2017-07-03 13:36:26 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2017-07-03 13:36:26 +0000
commitabbe3756cd2374d23be9b9937b33401d231eb9b0 (patch)
treebd2a0cbaf76fe375cab734bd599ca7a3c6d8783d /gcc/tree-predcom.c
parentd8ac7e2840b8c9f3ac7a8197ca5e03bbc72ba090 (diff)
downloadgcc-abbe3756cd2374d23be9b9937b33401d231eb9b0.zip
gcc-abbe3756cd2374d23be9b9937b33401d231eb9b0.tar.gz
gcc-abbe3756cd2374d23be9b9937b33401d231eb9b0.tar.bz2
Make dr_analyze_innermost operate on innermost_loop_behavior
This means that callers to dr_analyze_innermost don't need a full data_reference and don't need to fill in any fields beforehand. 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org> gcc/ * tree-data-ref.h (dr_analyze_innermost): Replace the dr argument with a "innermost_loop_behavior *" and refeence tree. * tree-data-ref.c (dr_analyze_innermost): Likewise. (create_data_ref): Update call accordingly. * tree-predcom.c (find_looparound_phi): Likewise. From-SVN: r249913
Diffstat (limited to 'gcc/tree-predcom.c')
-rw-r--r--gcc/tree-predcom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-predcom.c b/gcc/tree-predcom.c
index 23e7870..6baa606 100644
--- a/gcc/tree-predcom.c
+++ b/gcc/tree-predcom.c
@@ -1149,7 +1149,7 @@ find_looparound_phi (struct loop *loop, dref ref, dref root)
memset (&init_dr, 0, sizeof (struct data_reference));
DR_REF (&init_dr) = init_ref;
DR_STMT (&init_dr) = phi;
- if (!dr_analyze_innermost (&init_dr, loop))
+ if (!dr_analyze_innermost (&DR_INNERMOST (&init_dr), init_ref, loop))
return NULL;
if (!valid_initializer_p (&init_dr, ref->distance + 1, root->ref))