[llvm] [MCP] Skip invalidating constant regs during forward propagation (PR #111129)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 9 13:13:09 PDT 2024
================
@@ -885,6 +885,10 @@ void MachineCopyPropagation::ForwardCopyPropagateBlock(MachineBasicBlock &MBB) {
assert(!Reg.isVirtual() &&
"MachineCopyPropagation should be run after register allocation!");
+ // Skip invalidating constant registers.
+ if (MRI->isReserved(Reg) && MRI->isConstantPhysReg(Reg))
----------------
arsenm wrote:
Don't need the reserved check?
https://github.com/llvm/llvm-project/pull/111129
More information about the llvm-commits
mailing list