]> git.ipfire.org Git - thirdparty/gcc.git/commit
forwprop: Manually rename the virtual mem op for complex and vector loads prop
authorAndrew Pinski <quic_apinski@quicinc.com>
Sat, 31 May 2025 22:10:14 +0000 (15:10 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Sun, 1 Jun 2025 16:48:14 +0000 (09:48 -0700)
commit7624186f5f2e3fa6b3792c4af7136caea37e1ef2
treebb63f9c20af429c53e57cad4265081c7f453115e
parent213cb633e7ec9b291768a4da0cd6d67679221aeb
forwprop: Manually rename the virtual mem op for complex and vector loads prop

There are two places which forwprop replaces an original load to a few different loads.
Both can set the vuse manually instead of relying on update_ssa.
One is doing a complex load followed by REAL/IMAG_PART only
And the other is very similar but for vector loads followed by BIT_FIELD_REF.

Since this was the last place that needed to handle updating the ssa form,
Remove the TODO_update_ssa also from the pass.

gcc/ChangeLog:

* tree-ssa-forwprop.cc (optimize_vector_load): Set the vuse manually
on the new load statements. Also remove forward declaration since
the definition is before the first use.
(pass_forwprop::execute): Likewise for complex loads.
(pass_data_forwprop): Remove TODO_update_ssa.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/tree-ssa-forwprop.cc