mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
tPOP_RET now has predicate operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78898 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1340,8 +1340,8 @@ bool ARMConstantIslands::UndoLRSpillRestore() {
|
||||
for (unsigned i = 0, e = PushPopMIs.size(); i != e; ++i) {
|
||||
MachineInstr *MI = PushPopMIs[i];
|
||||
if (MI->getOpcode() == ARM::tPOP_RET &&
|
||||
MI->getOperand(0).getReg() == ARM::PC &&
|
||||
MI->getNumExplicitOperands() == 1) {
|
||||
MI->getOperand(2).getReg() == ARM::PC &&
|
||||
MI->getNumExplicitOperands() == 3) {
|
||||
BuildMI(MI->getParent(), MI->getDebugLoc(), TII->get(ARM::tBX_RET));
|
||||
MI->eraseFromParent();
|
||||
MadeChange = true;
|
||||
|
||||
Reference in New Issue
Block a user