forked from OSchip/llvm-project
[AArch64] Simplify AES*Tied pseudo expansion (NFC).
Summary: Suggested by @t.p.northover in https://bugs.llvm.org/show_bug.cgi?id=34015. Reviewers: javed.absar, t.p.northover, rengolin Reviewed By: t.p.northover Subscribers: aemerson, kristof.beyls, llvm-commits, t.p.northover Differential Revision: https://reviews.llvm.org/D36223 llvm-svn: 309821
This commit is contained in:
parent
a4a20cd2f3
commit
31f78fd0ae
|
@ -967,17 +967,10 @@ bool AArch64ExpandPseudo::expandMI(MachineBasicBlock &MBB,
|
|||
return expandCMP_SWAP_128(MBB, MBBI, NextMBBI);
|
||||
|
||||
case AArch64::AESMCrrTied:
|
||||
case AArch64::AESIMCrrTied: {
|
||||
MachineInstrBuilder MIB =
|
||||
BuildMI(MBB, MBBI, MI.getDebugLoc(),
|
||||
TII->get(Opcode == AArch64::AESMCrrTied ? AArch64::AESMCrr :
|
||||
AArch64::AESIMCrr))
|
||||
.add(MI.getOperand(0))
|
||||
.add(MI.getOperand(1));
|
||||
transferImpOps(MI, MIB, MIB);
|
||||
MI.eraseFromParent();
|
||||
case AArch64::AESIMCrrTied:
|
||||
MI.setDesc(TII->get(Opcode == AArch64::AESMCrrTied ? AArch64::AESMCrr :
|
||||
AArch64::AESIMCrr));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue