]> git.ipfire.org Git - thirdparty/gcc.git/commit
CCP: Manually rename the virtual mem op when inserting clobbers
authorAndrew Pinski <quic_apinski@quicinc.com>
Sat, 31 May 2025 05:30:01 +0000 (22:30 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Thu, 5 Jun 2025 16:34:27 +0000 (09:34 -0700)
commitc0be0298a9553c13af642f45628a15d833473657
tree0a798d153f2b8696bcab29718624c92fc0a84cd5
parent2e334900f4ddcd804e3b324402544a572d306ab6
CCP: Manually rename the virtual mem op when inserting clobbers

Right now the only place where CCP needs to have the virtual op renamed is
after inserting clobbers which come right before __builtin_stack_restore.
So let's manually do the correct thing so we can remove the TODO_update_ssa todo.

gcc/ChangeLog:

* tree-ssa-ccp.cc (insert_clobber_before_stack_restore): Update the virtual
op on the inserted clobber and the stack restore function.
(do_ssa_ccp): Don't add TODO_update_ssa to the todo.

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