[PATCH] D36223: [AArch64] Simplify AES*Tied pseudo expansion (NFC).
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 2 07:57:39 PDT 2017
fhahn created this revision.
Herald added subscribers: kristof.beyls, aemerson.
Suggested by @t.p.northover in https://bugs.llvm.org/show_bug.cgi?id=34015.
https://reviews.llvm.org/D36223
Files:
lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
Index: lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
===================================================================
--- lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
+++ lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
@@ -967,17 +967,10 @@
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;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36223.109354.patch
Type: text/x-patch
Size: 948 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170802/44d527d7/attachment.bin>
More information about the llvm-commits
mailing list