tree-optimization/95856 fix vect_stmt_dominates_stmt_p at BB region boundary
authorRichard Biener <rguenther@suse.de>
Tue, 23 Jun 2020 11:59:20 +0000 (13:59 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 24 Jun 2020 10:58:45 +0000 (12:58 +0200)
commitd32708e796504eaeaad7d19990909204d74f9ba3
tree7916c0559660b045db65dbd70014484a6a79f2ef
parent01e10b0ee77e82cb331414c569e02dc7a2c4999e
tree-optimization/95856 fix vect_stmt_dominates_stmt_p at BB region boundary

The following adjusts vect_stmt_dominates_stmt_p to honor out-of-region
stmts we run into which have UID -1u.

2020-06-24  Richard Biener  <rguenther@suse.de>

PR tree-optimization/95856
* tree-vectorizer.c (vect_stmt_dominates_stmt_p): Honor
region marker -1u.

* gcc.dg/vect/pr95856.c: New testcase.
gcc/testsuite/gcc.dg/vect/pr95856.c [new file with mode: 0644]
gcc/tree-vectorizer.c