summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-07-06 17:33:39 +0000
committerChad Rosier <mcrosier@apple.com>2012-07-06 17:33:39 +0000
commit88d53eae5696ff9c6bab8e4273862578f98115a6 (patch)
tree73fada22be6198e066121cc700fcc34ff2d1394f /llvm/lib
parent4cb38a82a26cb3f4ac86834659e0af5f873c1d5b (diff)
downloadbcm5719-llvm-88d53eae5696ff9c6bab8e4273862578f98115a6.tar.gz
bcm5719-llvm-88d53eae5696ff9c6bab8e4273862578f98115a6.zip
[fast-isel] Tell fast-isel to do nothing with the new donothing intrinsic.
llvm-svn: 159837
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index 07dc36577f9..20848b403a1 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -573,7 +573,10 @@ bool FastISel::SelectCall(const User *I) {
// At -O0 we don't care about the lifetime intrinsics.
case Intrinsic::lifetime_start:
case Intrinsic::lifetime_end:
+ // The donothing intrinsic does, well, nothing.
+ case Intrinsic::donothing:
return true;
+
case Intrinsic::dbg_declare: {
const DbgDeclareInst *DI = cast<DbgDeclareInst>(Call);
if (!DIVariable(DI->getVariable()).Verify() ||
OpenPOWER on IntegriCloud