llvm-svn: 17043
This commit is contained in:
Chris Lattner 2004-10-16 18:09:25 +00:00
parent 8e71c6a33d
commit 6ac3ef950d
1 changed files with 1 additions and 0 deletions

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