Make FastISel::SelectInstruction return before target specific fast-isel code
authorAkira Hatanaka <ahatanaka@apple.com>
Tue, 15 Apr 2014 21:30:06 +0000 (21:30 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Tue, 15 Apr 2014 21:30:06 +0000 (21:30 +0000)
commitf3930395f564d97ed74e99ea48e1f392148f1d10
tree6d15efa60cadc5a81ae935869fe032ef937ab2cf
parent749e8fee34bec3ed166fe5b6b440a6fac678cd08
Make FastISel::SelectInstruction return before target specific fast-isel code
handles Intrinsic::trap if TargetOptions::TrapFuncName is set.

This fixes a bug in which the trap function was not taken into consideration
when a program was compiled without optimization (at -O0).

<rdar://problem/16291933>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206323 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/FastISel.cpp
test/CodeGen/ARM/trap.ll