Skip to content

Commit f22b1da

Browse files
committed
[CodeGen] Replace MCPhysReg with MCRegister in MachineBasicBlock::isLiveIn/removeLiveIn. NFC
We already used it for addLiveIn.
1 parent 579fd59 commit f22b1da

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/include/llvm/CodeGen/MachineBasicBlock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,11 +478,11 @@ class MachineBasicBlock
478478
Register addLiveIn(MCRegister PhysReg, const TargetRegisterClass *RC);
479479

480480
/// Remove the specified register from the live in set.
481-
void removeLiveIn(MCPhysReg Reg,
481+
void removeLiveIn(MCRegister Reg,
482482
LaneBitmask LaneMask = LaneBitmask::getAll());
483483

484484
/// Return true if the specified register is in the live in set.
485-
bool isLiveIn(MCPhysReg Reg,
485+
bool isLiveIn(MCRegister Reg,
486486
LaneBitmask LaneMask = LaneBitmask::getAll()) const;
487487

488488
// Iteration support for live in sets. These sets are kept in sorted

llvm/lib/CodeGen/MachineBasicBlock.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ void MachineBasicBlock::printAsOperand(raw_ostream &OS,
595595
printName(OS, 0);
596596
}
597597

598-
void MachineBasicBlock::removeLiveIn(MCPhysReg Reg, LaneBitmask LaneMask) {
598+
void MachineBasicBlock::removeLiveIn(MCRegister Reg, LaneBitmask LaneMask) {
599599
LiveInVector::iterator I = find_if(
600600
LiveIns, [Reg](const RegisterMaskPair &LI) { return LI.PhysReg == Reg; });
601601
if (I == LiveIns.end())
@@ -613,7 +613,7 @@ MachineBasicBlock::removeLiveIn(MachineBasicBlock::livein_iterator I) {
613613
return LiveIns.erase(LI);
614614
}
615615

616-
bool MachineBasicBlock::isLiveIn(MCPhysReg Reg, LaneBitmask LaneMask) const {
616+
bool MachineBasicBlock::isLiveIn(MCRegister Reg, LaneBitmask LaneMask) const {
617617
livein_iterator I = find_if(
618618
LiveIns, [Reg](const RegisterMaskPair &LI) { return LI.PhysReg == Reg; });
619619
return I != livein_end() && (I->LaneMask & LaneMask).any();

0 commit comments

Comments
 (0)