]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/64731 - extend store-from CTOR lowering to TARGET_MEM_REF
authorRichard Biener <rguenther@suse.de>
Fri, 12 May 2023 11:43:27 +0000 (13:43 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 12 May 2023 13:04:28 +0000 (15:04 +0200)
commitcc0e22b3f25d4b2a326322bce711179c02377e6c
tree0d9baa7244542139c00518cd789c81d5344bdc95
parent10098788ff61467f5a499f01c5443fb53ff564dd
tree-optimization/64731 - extend store-from CTOR lowering to TARGET_MEM_REF

The following also covers TARGET_MEM_REF when decomposing stores from
CTORs to supported elementwise operations.  This avoids spilling
and cleans up after vector lowering which doesn't touch loads or
stores.  It also mimics what we already do for loads.

PR tree-optimization/64731
* tree-ssa-forwprop.cc (pass_forwprop::execute): Also
handle TARGET_MEM_REF destinations of stores from vector
CTORs.

* gcc.target/i386/pr64731.c: New testcase.
gcc/testsuite/gcc.target/i386/pr64731.c [new file with mode: 0644]
gcc/tree-ssa-forwprop.cc