tree-optimization/96163 - fix placement issue with SLP and vectors
authorRichard Biener <rguenther@suse.de>
Mon, 13 Jul 2020 10:41:35 +0000 (12:41 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 13 Jul 2020 14:50:07 +0000 (16:50 +0200)
commitc4facd483de2d5b6b4d20e6ad74c85b9f1eba41a
treed9564084235d366de34a17778253c12dbed0e6bc
parent3f069011019c9df670969ea283fd4d139f34a925
tree-optimization/96163 - fix placement issue with SLP and vectors

This avoids placing stmts beyond the vectorizer region begin which
confuses vect_stmt_dominates_stmt_p.

2020-07-13  Richard Biener  <rguenther@suse.de>

PR tree-optimization/96163
* tree-vect-slp.c (vect_schedule_slp_instance): Put new stmts
at least after region begin.

* g++.dg/vect/pr96163.cc: New testcase.
gcc/testsuite/g++.dg/vect/pr96163.cc [new file with mode: 0644]
gcc/tree-vect-slp.c