Ignore the lifetime intrinsics in fast-isel.
authorEric Christopher <echristo@apple.com>
Fri, 17 Feb 2012 23:03:39 +0000 (23:03 +0000)
committerEric Christopher <echristo@apple.com>
Fri, 17 Feb 2012 23:03:39 +0000 (23:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150848 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/FastISel.cpp

index 2700309e6f0a0e036cf0500a11a2c8d35f539ebb..f20a714d2b8090f4a76728dec67f45fb0d631fbf 100644 (file)
@@ -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() ||