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 | 4eb0433672a81c0550d675c28001fba8db8b89a2 (patch) | |
| tree | 35addd4d4da56f4bb85eb8a3dc1e52a6992c1196 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
| parent | 51b554247daf05649c8d14f2e1496eae79005356 (diff) | |
| download | bcm5719-llvm-4eb0433672a81c0550d675c28001fba8db8b89a2.tar.gz bcm5719-llvm-4eb0433672a81c0550d675c28001fba8db8b89a2.zip | |
A landingpad instruction is neither folded nor dead.
llvm-svn: 138387
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 8e1e01099a0..dda018b9398 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/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. } |

