[llvm] r358064 - [ARM GlobalISel] Add some asserts. NFC.
Diana Picus via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 10 02:14:37 PDT 2019
Author: rovka
Date: Wed Apr 10 02:14:37 2019
New Revision: 358064
URL: http://llvm.org/viewvc/llvm-project?rev=358064&view=rev
Log:
[ARM GlobalISel] Add some asserts. NFC.
Make sure some arm opcodes don't unintentionally sneak into thumb mode.
Modified:
llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp?rev=358064&r1=358063&r2=358064&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp Wed Apr 10 02:14:37 2019
@@ -801,6 +801,7 @@ bool ARMInstructionSelector::selectSelec
bool ARMInstructionSelector::selectShift(unsigned ShiftOpc,
MachineInstrBuilder &MIB) const {
+ assert(!STI.isThumb() && "Unsupported subtarget");
MIB->setDesc(TII.get(ARM::MOVsr));
MIB.addImm(ShiftOpc);
MIB.add(predOps(ARMCC::AL)).add(condCodeOp());
@@ -981,6 +982,7 @@ bool ARMInstructionSelector::select(Mach
}
}
+ assert(!STI.isThumb() && "Unsupported subtarget");
I.setDesc(TII.get(ARM::MOVi));
MIB.add(predOps(ARMCC::AL)).add(condCodeOp());
break;
More information about the llvm-commits
mailing list