summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-16 18:09:25 +0000
committerChris Lattner <sabre@nondot.org>2004-10-16 18:09:25 +0000
commit6ac3ef950d7d39fd70a8e4d348db7c9ccbad4190 (patch)
tree0652186a902c909d768fffca2646a5f9707d6cff /llvm/lib/Transforms
parent8e71c6a33d8fbc76054df9deadd9087db20c5227 (diff)
downloadbcm5719-llvm-6ac3ef950d7d39fd70a8e4d348db7c9ccbad4190.tar.gz
bcm5719-llvm-6ac3ef950d7d39fd70a8e4d348db7c9ccbad4190.zip
Add note
llvm-svn: 17043
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/ADCE.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/ADCE.cpp b/llvm/lib/Transforms/Scalar/ADCE.cpp
index 7fafe26d4a9..e1f228d6fab 100644
--- a/llvm/lib/Transforms/Scalar/ADCE.cpp
+++ b/llvm/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...
OpenPOWER on IntegriCloud