tree-optimization/97139 - fix BB SLP live lane extraction
authorRichard Biener <rguenther@suse.de>
Mon, 21 Sep 2020 14:51:33 +0000 (16:51 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 21 Sep 2020 14:54:04 +0000 (16:54 +0200)
commite6f58fb6196ba16ce070e3722451f040a13f963b
tree5002dfc3bf0db9e8c32733172c4646345fba7eb7
parentb6ff694e592669e7865d39a884100dd677e7ceec
tree-optimization/97139 - fix BB SLP live lane extraction

This fixes SLP live lane extraction with pattern stmts.

2020-09-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/97139
* tree-vect-slp.c (vect_bb_slp_mark_live_stmts): Only mark the
pattern root, track visited vectorized stmts.

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