]> git.ipfire.org Git - thirdparty/gcc.git/commit
cselim: Update the vop manually for cond_if_else_store replacement
authorAndrew Pinski <quic_apinski@quicinc.com>
Thu, 5 Jun 2025 22:03:27 +0000 (15:03 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Fri, 6 Jun 2025 17:08:08 +0000 (10:08 -0700)
commit3655b4c4ae2dd6c841777f6479472a75a15ba746
tree27cab0b78391feda8a601dcf14ab98589debe976
parent29b2cb40ee848928385a48c4fdeb9b7a2ae0aecd
cselim: Update the vop manually for cond_if_else_store replacement

To speed up things slightly, we can do the update of the vop for the
newly inserted store manually.
This will also allow a simplified part of cselim to be used inside
phi-opt to move the store out earlier and independent of the full cselim.

gcc/ChangeLog:

* tree-ssa-phiopt.cc (cond_if_else_store_replacement_1): Add vphi argument.
Manually update the vphi and new_stmt vdef/lhs.
(cond_if_else_store_replacement): Update call to cond_if_else_store_replacement_1.

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