git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17043 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-10-16 18:09:25 +00:00
parent 7a7ed0274d
commit b2f59a2af7

View File

@ -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...