]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/117277 - remove CLOBBERs before SLP code generation
authorRichard Biener <rguenther@suse.de>
Thu, 24 Oct 2024 14:15:43 +0000 (16:15 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 25 Oct 2024 09:14:42 +0000 (11:14 +0200)
commit482d5a7b1a4abdd95f42033ad3b8d1276b8fb20a
tree1bf706cac21d70dd1c564cbbedc9562fa5b6c3bb
parent7b2fb7ddc7a713c057d033a48c9482d5383ba54c
tree-optimization/117277 - remove CLOBBERs before SLP code generation

We have to remove CLOBBERs before SLP is code generated since for
store-lanes we are inserting our own CLOBBERs that we want to survive.
So the following refactors vect_transform_loop to remove unwanted
stmts first.

This resolves the gcc.target/aarch64/sve/store_lane_spill_1.c FAIL.

PR tree-optimization/117277
* tree-vect-loop.cc (vect_transform_loop): Remove CLOBBERs
and prefetches before doing any code generation.
gcc/tree-vect-loop.cc