diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-08-23 21:33:05 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-08-23 21:33:05 +0000 |
commit | 4477d691ed9fa63f051986dcb98e358054c8281f (patch) | |
tree | 0654af6c991e6754ba42c2142d9537b4835151b5 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 5aa29a0cffc499331a2a24a03eb55643dace1d8d (diff) |
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 8e1e01099a..dda018b939 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<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. } |