]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/109046 - re-combine complex loads
authorRichard Biener <rguenther@suse.de>
Tue, 7 Mar 2023 10:04:55 +0000 (11:04 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 13 Mar 2023 07:43:36 +0000 (08:43 +0100)
commiteb337d28c32b1b460cc85b3c00f8418ca535c77b
treea38b73b69ffe7491022a0bd018213eee91b7fd8e
parent44ea73185a84fd42e86c4c823043f6063576aac5
tree-optimization/109046 - re-combine complex loads

The following addresses PR109046 by adding an optimization to forwprop
to combine a piecewise complex load to a complex load when there are
no other uses of the components.  That's something useful in general and
easier to do than avoiding the splitting in complex lowering.

The testcase exercises both the manual and the complex lowering case.

PR tree-optimization/109046
* tree-ssa-forwprop.cc (pass_forwprop::execute): Combine
piecewise complex loads.

* gcc.dg/tree-ssa/forwprop-39.c: New testcase.
gcc/testsuite/gcc.dg/tree-ssa/forwprop-39.c [new file with mode: 0644]
gcc/tree-ssa-forwprop.cc
This page took 0.066864 seconds and 5 git commands to generate.