diff options
author | Eric Christopher <echristo@apple.com> | 2012-02-17 23:03:39 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-02-17 23:03:39 +0000 |
commit | 9b5d6b860c7264e1dd8c5b757dfb4458dccdc27e (patch) | |
tree | 62782c371ac6f0b5938a74c15d5946b7a601eded /lib | |
parent | 0b923d9ee9e406c7dadc0803106656391a0ffd68 (diff) | |
download | external_llvm-9b5d6b860c7264e1dd8c5b757dfb4458dccdc27e.zip external_llvm-9b5d6b860c7264e1dd8c5b757dfb4458dccdc27e.tar.gz external_llvm-9b5d6b860c7264e1dd8c5b757dfb4458dccdc27e.tar.bz2 |
Ignore the lifetime intrinsics in fast-isel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/FastISel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index 2700309..f20a714 100644 --- a/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -567,6 +567,10 @@ bool FastISel::SelectCall(const User *I) { // Handle selected intrinsic function calls. switch (F->getIntrinsicID()) { default: break; + // At -O0 we don't care about the lifetime intrinsics. + case Intrinsic::lifetime_start: + case Intrinsic::lifetime_end: + return true; case Intrinsic::dbg_declare: { const DbgDeclareInst *DI = cast<DbgDeclareInst>(Call); if (!DIVariable(DI->getVariable()).Verify() || |