Skip to content

Commit fe89827

Browse files
committed
Remove in PostRA pseudos instead
1 parent 5e2ca7f commit fe89827

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,6 @@ void SystemZAsmPrinter::emitInstruction(const MachineInstr *MI) {
199199
SystemZMCInstLower Lower(MF->getContext(), *this);
200200
MCInst LoweredMI;
201201
switch (MI->getOpcode()) {
202-
case SystemZ::ADJCALLSTACKDOWN:
203-
case SystemZ::ADJCALLSTACKUP:
204-
return;
205-
206202
case SystemZ::Return:
207203
LoweredMI = MCInstBuilder(SystemZ::BR)
208204
.addReg(SystemZ::R14D);

llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,6 +1513,11 @@ bool SystemZInstrInfo::expandPostRAPseudo(MachineInstr &MI) const {
15131513
expandLoadStackGuard(&MI);
15141514
return true;
15151515

1516+
case SystemZ::ADJCALLSTACKDOWN:
1517+
case SystemZ::ADJCALLSTACKUP:
1518+
MI.eraseFromParent();
1519+
return true;
1520+
15161521
default:
15171522
return false;
15181523
}

llvm/lib/Target/SystemZ/SystemZLongBranch.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,6 @@ static unsigned getInstSizeInBytes(const MachineInstr &MI,
218218
// These do not have a size:
219219
MI.isDebugOrPseudoInstr() || MI.isPosition() || MI.isKill() ||
220220
MI.isImplicitDef() || MI.getOpcode() == TargetOpcode::MEMBARRIER ||
221-
MI.getOpcode() == SystemZ::ADJCALLSTACKDOWN ||
222-
MI.getOpcode() == SystemZ::ADJCALLSTACKUP ||
223221
// These have a size that may be zero:
224222
MI.isInlineAsm() || MI.getOpcode() == SystemZ::STACKMAP ||
225223
MI.getOpcode() == SystemZ::PATCHPOINT) &&

0 commit comments

Comments
 (0)