Fix ICE in vectorizable_live_operation
authorRichard Biener <rguenther@suse.de>
Thu, 15 Oct 2020 08:58:41 +0000 (10:58 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 15 Oct 2020 09:49:38 +0000 (11:49 +0200)
commit852dce060860d988f4d8007be97b7b38e51f9900
tree13b26d02fef3e322da11de21fe851cef2869c9d1
parentd8394e2aa265c9e06b8362a84e77270dd182f638
Fix ICE in vectorizable_live_operation

This fixes the case where the insertion iterator for the live stmt
is the end of a BB by adjusting the dominance query to the definition
of the def we're substituting.

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

* tree-vect-loop.c (vectorizable_live_operation): Adjust
dominance query.

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