projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ae486a
)
Have FastISel handle llvm.trap().
author
Eric Christopher
<echristo@apple.com>
Mon, 18 Jan 2010 22:11:29 +0000
(22:11 +0000)
committer
Eric Christopher
<echristo@apple.com>
Mon, 18 Jan 2010 22:11:29 +0000
(22:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93781
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86FastISel.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86FastISel.cpp
b/lib/Target/X86/X86FastISel.cpp
index 7e02d59c1bca72a359d07b214bdc7860a42022e6..d5ad61b26660c5782b0040f4483f84652bd71e3e 100644
(file)
--- a/
lib/Target/X86/X86FastISel.cpp
+++ b/
lib/Target/X86/X86FastISel.cpp
@@
-1153,6
+1153,10
@@
bool X86FastISel::X86VisitIntrinsicCall(IntrinsicInst &I) {
// FIXME: Handle more intrinsics.
switch (I.getIntrinsicID()) {
default: return false;
+ case Intrinsic::trap: {
+ BuildMI(MBB, DL, TII.get(X86::TRAP));
+ return true;
+ }
case Intrinsic::sadd_with_overflow:
case Intrinsic::uadd_with_overflow: {
// Replace "add with overflow" intrinsics with an "add" instruction followed