A landingpad instruction is neither folded nor dead.
authorBill Wendling <isanbard@gmail.com>
Tue, 23 Aug 2011 21:33:05 +0000 (21:33 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 23 Aug 2011 21:33:05 +0000 (21:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138387 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index 8e1e01099a016ce2d8546fb0d0e9e13cc64e0ce4..dda018b93986a5f502fde57bbfc6f556d824e03d 100644 (file)
@@ -808,6 +808,7 @@ static bool isFoldedOrDeadInstruction(const Instruction *I,
   return !I->mayWriteToMemory() && // Side-effecting instructions aren't folded.
          !isa<TerminatorInst>(I) && // Terminators aren't folded.
          !isa<DbgInfoIntrinsic>(I) &&  // Debug instructions aren't folded.
+         !isa<LandingPadInst>(I) &&    // Landingpad instructions aren't folded.
          !FuncInfo->isExportedInst(I); // Exported instrs must be computed.
 }