Skip to content

Commit c43b50a

Browse files
committed
[NFC] Simplify checks using isDebugOrPseudoInstr API
1 parent a911543 commit c43b50a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/CodeGen/MachineSink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ MachineSinking::getBBRegisterPressure(const MachineBasicBlock &MBB,
12081208
MIE = MBB.instr_begin();
12091209
MII != MIE; --MII) {
12101210
const MachineInstr &MI = *std::prev(MII);
1211-
if (MI.isDebugInstr() || MI.isPseudoProbe())
1211+
if (MI.isDebugOrPseudoInstr())
12121212
continue;
12131213
RegisterOperands RegOpers;
12141214
RegOpers.collect(MI, *TRI, *MRI, false, false);

llvm/lib/CodeGen/RegisterPressure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ void RegPressureTracker::recedeSkipDebugValues() {
858858

859859
void RegPressureTracker::recede(SmallVectorImpl<VRegMaskOrUnit> *LiveUses) {
860860
recedeSkipDebugValues();
861-
if (CurrPos->isDebugInstr() || CurrPos->isPseudoProbe()) {
861+
if (CurrPos->isDebugOrPseudoInstr()) {
862862
// It's possible to only have debug_value and pseudo probe instructions and
863863
// hit the start of the block.
864864
assert(CurrPos == MBB->begin());

0 commit comments

Comments
 (0)