]> git.ipfire.org Git - thirdparty/gcc.git/commit
Improve DCE of dead parts of a permute chain
authorRichard Biener <rguenther@suse.de>
Wed, 20 Dec 2023 12:18:51 +0000 (13:18 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 20 Dec 2023 13:43:36 +0000 (14:43 +0100)
commita8f0278ade1353e3e6389aa7a00525b6e9b723ab
tree2c3726617fa3dbc0f5c4652451099dbb2933061c
parente61c51009145bab05cdc00e06a7dbc4209cb580e
Improve DCE of dead parts of a permute chain

gcc.dg/vect/bb-slp-pr78205.c is reported to have regressed with
the PR113073 change and in the end it's due to the DCE performed
by vect_transform_slp_perm_load_1 being imperfect.  The following
enhances it to also cover the CTOR and VIEW_CONVERT operations that
might be involved.

* tree-vect-slp.cc (vect_transform_slp_perm_load_1): Also handle
CTOR and VIEW_CONVERT up to the load when performing chain DCE.
gcc/tree-vect-slp.cc