[llvm] [CodeGen] Simplify updateLiveIn in MachineSink (PR #79831)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 06:49:26 PST 2024
================
@@ -1949,13 +1949,8 @@ static void updateLiveIn(MachineInstr *MI, MachineBasicBlock *SuccBB,
for (unsigned DefReg : DefedRegsInCopy)
for (MCPhysReg S : TRI->subregs_inclusive(DefReg))
SuccBB->removeLiveIn(S);
- for (auto U : UsedOpsInCopy) {
- Register SrcReg = MI->getOperand(U).getReg();
- LaneBitmask Mask;
- for (MCRegUnitMaskIterator S(SrcReg, TRI); S.isValid(); ++S)
----------------
jayfoad wrote:
This was added in https://reviews.llvm.org/D71132 by @alex-t.
https://github.com/llvm/llvm-project/pull/79831
More information about the llvm-commits
mailing list