diff options
author | Tim Northover <tnorthover@apple.com> | 2017-02-10 19:10:38 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2017-02-10 19:10:38 +0000 |
commit | 0e01170c79d5ead074f528b9fdd07102dfac00a3 (patch) | |
tree | 19a268c2c9152f0a8d7cbfa70844f13a660fb535 /llvm/lib/CodeGen | |
parent | e81f9cc63df164df8bb075fd14fb519e48631081 (diff) | |
download | bcm5719-llvm-0e01170c79d5ead074f528b9fdd07102dfac00a3.tar.gz bcm5719-llvm-0e01170c79d5ead074f528b9fdd07102dfac00a3.zip |
GlobalISel: drop lifetime intrinsics during translation.
We don't use them yet and they just cause problems.
llvm-svn: 294770
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp index 361efe6c1d6..97292dc5bd7 100644 --- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp +++ b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp @@ -555,6 +555,14 @@ bool IRTranslator::translateKnownIntrinsic(const CallInst &CI, Intrinsic::ID ID, switch (ID) { default: break; + case Intrinsic::lifetime_start: + case Intrinsic::lifetime_end: + // Stack coloring is not enabled in O0 (which we care about now) so we can + // drop these. Make sure someone notices when we start compiling at higher + // opts though. + if (MF->getTarget().getOptLevel() != CodeGenOpt::None) + return false; + return true; case Intrinsic::dbg_declare: { const DbgDeclareInst &DI = cast<DbgDeclareInst>(CI); assert(DI.getVariable() && "Missing variable"); |