Skip to content

Commit

Permalink
[CodeGen] Make use of isSubRegisterEq and isSuperRegisterEq. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfoad committed Aug 1, 2023
1 parent f054901 commit 11fbdd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ unsigned AggressiveAntiDepBreaker::BreakAntiDependencies(
unsigned R = S.getReg();
if (!RegAliases[R])
continue;
if (R == AntiDepReg || TRI->isSubRegister(AntiDepReg, R))
if (TRI->isSubRegisterEq(AntiDepReg, R))
continue;
AntiDepReg = 0;
break;
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/MachineLICM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ void MachineLICMBase::AddToLiveIns(MCRegister Reg) {
for (MachineOperand &MO : MI.all_uses()) {
if (!MO.getReg())
continue;
if (MO.getReg() == Reg || TRI->isSuperRegister(Reg, MO.getReg()))
if (TRI->isSuperRegisterEq(Reg, MO.getReg()))
MO.setIsKill(false);
}
}
Expand Down

0 comments on commit 11fbdd2

Please sign in to comment.