aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-prefetch.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2016-05-20 09:09:28 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2016-05-20 09:09:28 +0000
commiteb066284cb8cdf7f46f455c3e975cf1b349a0487 (patch)
treedd7c8a1e1fbcd874441ae5c7e87bc6a815ed0dd0 /gcc/tree-ssa-loop-prefetch.c
parent58f10249a8182b1b038747113c2ba217d7bd4379 (diff)
downloadgcc-eb066284cb8cdf7f46f455c3e975cf1b349a0487.zip
gcc-eb066284cb8cdf7f46f455c3e975cf1b349a0487.tar.gz
gcc-eb066284cb8cdf7f46f455c3e975cf1b349a0487.tar.bz2
re PR target/71185 (ice in gimplify_modify_expr, at gimplify.c:4873)
2016-05-20 Richard Biener <rguenther@suse.de> PR tree-optimization/71185 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop register operations. * gcc.dg/tree-ssa/pr71185.c: New testcase. From-SVN: r236499
Diffstat (limited to 'gcc/tree-ssa-loop-prefetch.c')
-rw-r--r--gcc/tree-ssa-loop-prefetch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-ssa-loop-prefetch.c b/gcc/tree-ssa-loop-prefetch.c
index 49fd597..fb8c476 100644
--- a/gcc/tree-ssa-loop-prefetch.c
+++ b/gcc/tree-ssa-loop-prefetch.c
@@ -631,6 +631,9 @@ gather_memory_references (struct loop *loop, bool *no_other_refs, unsigned *ref_
continue;
}
+ if (! gimple_vuse (stmt))
+ continue;
+
lhs = gimple_assign_lhs (stmt);
rhs = gimple_assign_rhs1 (stmt);