From: Bill Wendling Date: Tue, 23 Aug 2011 21:33:05 +0000 (+0000) Subject: A landingpad instruction is neither folded nor dead. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4477d691ed9fa63f051986dcb98e358054c8281f;p=oota-llvm.git A landingpad instruction is neither folded nor dead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138387 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 8e1e01099a0..dda018b9398 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -808,6 +808,7 @@ static bool isFoldedOrDeadInstruction(const Instruction *I, return !I->mayWriteToMemory() && // Side-effecting instructions aren't folded. !isa(I) && // Terminators aren't folded. !isa(I) && // Debug instructions aren't folded. + !isa(I) && // Landingpad instructions aren't folded. !FuncInfo->isExportedInst(I); // Exported instrs must be computed. }