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 <rguent...@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; }