[llvm] r218459 - ARM: Remove unneeded check for MI->hasPostISelHook()

Tom Stellard thomas.stellard at amd.com
Thu Sep 25 11:59:24 PDT 2014


Author: tstellar
Date: Thu Sep 25 13:59:23 2014
New Revision: 218459

URL: http://llvm.org/viewvc/llvm-project?rev=218459&view=rev
Log:
ARM: Remove unneeded check for MI->hasPostISelHook()

Modified:
    llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=218459&r1=218458&r2=218459&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Thu Sep 25 13:59:23 2014
@@ -7668,12 +7668,6 @@ ARMTargetLowering::EmitInstrWithCustomIn
 
 void ARMTargetLowering::AdjustInstrPostInstrSelection(MachineInstr *MI,
                                                       SDNode *Node) const {
-  if (!MI->hasPostISelHook()) {
-    assert(!convertAddSubFlagsOpcode(MI->getOpcode()) &&
-           "Pseudo flag-setting opcodes must be marked with 'hasPostISelHook'");
-    return;
-  }
-
   const MCInstrDesc *MCID = &MI->getDesc();
   // Adjust potentially 's' setting instructions after isel, i.e. ADC, SBC, RSB,
   // RSC. Coming out of isel, they have an implicit CPSR def, but the optional





More information about the llvm-commits mailing list