vect: Fix early free
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 15 Feb 2022 18:09:33 +0000 (18:09 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 15 Feb 2022 18:09:33 +0000 (18:09 +0000)
commit63a9328cb8c601377fe73e214b708c4ae0441847
tree2d55671063caf18256dc0e3f976cc9b4e265352c
parent6cfb7ffb659fd6b87a21312021ab023a06e8f6be
vect: Fix early free

When updating the target costs interface, I failed to move the
free of the scalar costs beyond the new last use.

gcc/
* tree-vect-slp.cc (vect_bb_vectorization_profitable_p): Fix
use after free.
gcc/tree-vect-slp.cc