projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5aa29a0
)
A landingpad instruction is neither folded nor dead.
author
Bill Wendling
<isanbard@gmail.com>
Tue, 23 Aug 2011 21:33:05 +0000
(21:33 +0000)
committer
Bill 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
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 8e1e01099a016ce2d8546fb0d0e9e13cc64e0ce4..dda018b93986a5f502fde57bbfc6f556d824e03d 100644
(file)
--- 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.
}