tree-optimization/98064 - fix BB SLP live lane extract wrt LC SSA
authorRichard Biener <rguenther@suse.de>
Mon, 30 Nov 2020 12:39:59 +0000 (13:39 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 30 Nov 2020 13:29:57 +0000 (14:29 +0100)
commitebbe3f29518854c36574adbd4fa82fd56fa64056
tree94cf39775563bbeaf504bf34ca9b268a08450dd4
parent1e5c644fb62e3e1757cf74fe8a14873d5e8ba53e
tree-optimization/98064 - fix BB SLP live lane extract wrt LC SSA

This avoids breaking LC SSA when SLP codegen pulled an out-of-loop
def into a loop when merging with in-loop defs for an external def.

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

PR tree-optimization/98064
* tree-vect-loop.c (vectorizable_live_operation): Avoid
breaking LC SSA for BB vectorization.

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