* [PATCH] Fix PR86637
@ 2018-12-05 11:34 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2018-12-05 11:34 UTC (permalink / raw)
To: gcc-patches
SLP vectorization forgot to reset vect_location which then "leaks"
to autopar eventually accessing stale data.
Committed to trunk.
Richard.
2018-12-05 Richard Biener <rguenther@suse.de>
PR tree-optimization/86637
* tree-vectorizer.c (pass_slp_vectorize::execute): Reset
vect_location at the end.
diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c
index 0a4eca51ad7..1a6cb56a872 100644
--- a/gcc/tree-vectorizer.c
+++ b/gcc/tree-vectorizer.c
@@ -1303,6 +1303,8 @@ pass_slp_vectorize::execute (function *fun)
loop_optimizer_finalize ();
}
+ vect_location = dump_user_location_t ();
+
return 0;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-12-05 11:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-05 11:34 [PATCH] Fix PR86637 Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).