summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/IntrinsicLowering.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-11-10 09:08:09 +0000
committerDuncan Sands <baldrick@free.fr>2009-11-10 09:08:09 +0000
commitdca0c284525b915df0fa147e2463ea80696c29e7 (patch)
treec877e5a3d10ecf5c78b2184da4ab2812687f123e /llvm/lib/CodeGen/IntrinsicLowering.cpp
parentf9667229a1e2be39b805651e2d5ee290456fec31 (diff)
downloadbcm5719-llvm-dca0c284525b915df0fa147e2463ea80696c29e7.tar.gz
bcm5719-llvm-dca0c284525b915df0fa147e2463ea80696c29e7.zip
Codegen support for the llvm.invariant/lifetime.start/end intrinsics:
just throw them away. llvm-svn: 86678
Diffstat (limited to 'llvm/lib/CodeGen/IntrinsicLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/IntrinsicLowering.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/IntrinsicLowering.cpp b/llvm/lib/CodeGen/IntrinsicLowering.cpp
index 3e3b28a8109..8a3bd0bf4e0 100644
--- a/llvm/lib/CodeGen/IntrinsicLowering.cpp
+++ b/llvm/lib/CodeGen/IntrinsicLowering.cpp
@@ -515,6 +515,15 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {
if (CI->getType() != Type::getVoidTy(Context))
CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 1));
break;
+ case Intrinsic::invariant_start:
+ case Intrinsic::lifetime_start:
+ // Discard region information.
+ CI->replaceAllUsesWith(UndefValue::get(CI->getType()));
+ break;
+ case Intrinsic::invariant_end:
+ case Intrinsic::lifetime_end:
+ // Discard region information.
+ break;
}
assert(CI->use_empty() &&
OpenPOWER on IntegriCloud