tree-optimization/95576 - fix compare-debug issue with SLP vectorization
authorRichard Biener <rguenther@suse.de>
Wed, 10 Jun 2020 13:16:23 +0000 (15:16 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 10 Jun 2020 16:06:41 +0000 (18:06 +0200)
commit36e95a9e539a08275a0a6ef542a7fae5baa5710f
treebcfc4f2b6ffc42f962ede37d394e89bb3a1e3e09
parentb5cebc9ab7f6ab47067dc04cae17bf9921a62a18
tree-optimization/95576 - fix compare-debug issue with SLP vectorization

The following avoids leading debug stmts in BB vectorizer regions.

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

PR tree-optimization/95576
* tree-vect-slp.c (vect_slp_bb): Skip leading debug stmts.

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