Revert "[AArch64] Simplify AES*Tied pseudo expansion (NFC)."
This reverts commit r309821. My suggestion was wrong because it left the MachineOperands tied which confused the verifier. Since there's no easy way to untie operands, the original BuildMI solution is probably best. llvm-svn: 309962
This commit is contained in:
parent
0dfd4fa8d3
commit
869fa74d4b
|
@ -967,10 +967,17 @@ bool AArch64ExpandPseudo::expandMI(MachineBasicBlock &MBB,
|
|||
return expandCMP_SWAP_128(MBB, MBBI, NextMBBI);
|
||||
|
||||
case AArch64::AESMCrrTied:
|
||||
case AArch64::AESIMCrrTied:
|
||||
MI.setDesc(TII->get(Opcode == AArch64::AESMCrrTied ? AArch64::AESMCrr :
|
||||
AArch64::AESIMCrr));
|
||||
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();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue