[ARM] Use correct TRAP opcode for thumb in FastISel
authorDavid Green <david.green@arm.com>
Mon, 6 Jan 2020 10:58:14 +0000 (10:58 +0000)
committerDavid Green <david.green@arm.com>
Mon, 6 Jan 2020 16:38:49 +0000 (16:38 +0000)
commit0eb981b8ce70d07b1b1fb39b969a6fe9509840c1
tree67b75092453408629ed9f98d356396107a697db7
parent61b5e727b7ccfca7e0cbb0ed70f9e828cd1514bd
[ARM] Use correct TRAP opcode for thumb in FastISel

We were previously unconditionally using the ARM::TRAP opcode, even
under Thumb. My understanding is that these are essentially the same
thing (they both result in a trap under Thumb), but the ARM::TRAP opcode
is marked as requiring IsARM, so it is more correct to use ARM::tTRAP.

Differential Revision: https://reviews.llvm.org/D72075
llvm/lib/Target/ARM/ARMFastISel.cpp
llvm/test/CodeGen/ARM/load_store_opt_clobber_cpsr.mir