aboutsummaryrefslogtreecommitdiffstats
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
commitb2f59a2af7a94acf85c8b18af5c63f155df94f84 (patch)
tree47286ae3a39f332d406b47e9655bf79eef1108f8
parent7a7ed0274d01efb2e12a32fd5fee6aa9596b0b9a (diff)
downloadexternal_llvm-b2f59a2af7a94acf85c8b18af5c63f155df94f84.zip
external_llvm-b2f59a2af7a94acf85c8b18af5c63f155df94f84.tar.gz
external_llvm-b2f59a2af7a94acf85c8b18af5c63f155df94f84.tar.bz2
Add note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17043 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/ADCE.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/ADCE.cpp b/lib/Transforms/Scalar/ADCE.cpp
index 7fafe26..e1f228d 100644
--- 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...