[llvm] r309821 - [AArch64] Simplify AES*Tied pseudo expansion (NFC).

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 2 08:17:19 PDT 2017


Author: fhahn
Date: Wed Aug  2 08:17:19 2017
New Revision: 309821

URL: http://llvm.org/viewvc/llvm-project?rev=309821&view=rev
Log:
[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

Modified:
    llvm/trunk/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp

Modified: llvm/trunk/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp?rev=309821&r1=309820&r2=309821&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp Wed Aug  2 08:17:19 2017
@@ -967,17 +967,10 @@ bool AArch64ExpandPseudo::expandMI(Machi
     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;
 }




More information about the llvm-commits mailing list