ARM: Remove unneeded check for MI->hasPostISelHook()
authorTom Stellard <thomas.stellard@amd.com>
Thu, 25 Sep 2014 18:59:23 +0000 (18:59 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 25 Sep 2014 18:59:23 +0000 (18:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218459 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelLowering.cpp

index ec59ec50a1da9b3aa378893b302b4c7e2e7860b9..425732cb7d25434a42fa1620516ddab4b64fe667 100644 (file)
@@ -7668,12 +7668,6 @@ ARMTargetLowering::EmitInstrWithCustomInserter(MachineInstr *MI,
 
 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