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:
7a7ed02
)
Add note
author
Chris Lattner
<sabre@nondot.org>
Sat, 16 Oct 2004 18:09:25 +0000
(18:09 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 16 Oct 2004 18:09:25 +0000
(18:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17043
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/ADCE.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/ADCE.cpp
b/lib/Transforms/Scalar/ADCE.cpp
index 7fafe26d4a9affc74ac7d4ed41c212db362a61c6..e1f228d6fab70e799c827b31d8b66a25d014f767 100644
(file)
--- a/
lib/Transforms/Scalar/ADCE.cpp
+++ b/
lib/Transforms/Scalar/ADCE.cpp
@@
-234,6
+234,7
@@
bool ADCE::doADCE() {
}
} else if (I->mayWriteToMemory() || isa<ReturnInst>(I) ||
isa<UnwindInst>(I)) {
+ // Unreachable instructions are not marked intrinsically live here.
markInstructionLive(I);
} else if (isInstructionTriviallyDead(I)) {
// Remove the instruction from it's basic block...