]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/105437 - BB vect with extern defs of throwing stmts
authorRichard Biener <rguenther@suse.de>
Mon, 2 May 2022 07:30:27 +0000 (09:30 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 2 Jun 2022 09:48:54 +0000 (11:48 +0200)
commit462e7e2c6fe0bc57e03110d43a2c7e53a1ce04ea
tree85cbeede9f20a406b643dfc64306c9c177387997
parent143655ff79f89faec3f3d124b32f65e62316f14a
tree-optimization/105437 - BB vect with extern defs of throwing stmts

We have to watch out for vectorized stmt insert locations if the
def from the last stmt alters control flow.  We constrain region
building so we know the def is outside of the current region
and thus we can insert at the region start point.

2022-05-02  Richard Biener  <rguenther@suse.de>

PR tree-optimization/105437
* tree-vect-slp.c (vect_schedule_slp_node): Handle the
case where last_stmt alters control flow.

* g++.dg/vect/pr105437.cc: New testcase.

(cherry picked from commit 3a3eda000fdf4f8754c9a2535191091f1db0c2a2)
gcc/testsuite/g++.dg/vect/pr105437.cc [new file with mode: 0644]
gcc/tree-vect-slp.c
This page took 0.062467 seconds and 6 git commands to generate.