fix hybrid SLP discovery debug stmt issue
authorRichard Biener <rguenther@suse.de>
Mon, 23 Nov 2020 12:46:35 +0000 (13:46 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 23 Nov 2020 14:07:43 +0000 (15:07 +0100)
commit692d3b772755b798cc527a80ca2d02e23bc4e2bf
treec466a2faeb373b448d9ba6589660f774ce559bae
parent762ca20364a590be2cb9c79c0101ccbff74b5de1
fix hybrid SLP discovery debug stmt issue

This properly skips debug USE_STMTs when looking for non-SLP sinks.

2020-11-23  Richard Biener  <rguenther@suse.de>

* tree-vect-slp.c (maybe_push_to_hybrid_worklist): Skip
debug stmts.

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