trivial simplification

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-03-06 21:35:38 +00:00
parent decc86db0c
commit fee3411379

View File

@ -437,7 +437,7 @@ static PHINode *FindPHIToPartitionLoops(Loop *L, DominatorSet &DS) {
if (!isa<Instruction>(V) || DS.dominates(cast<Instruction>(V), PN)) {
// This is a degenerate PHI already, don't modify it!
PN->replaceAllUsesWith(V);
PN->getParent()->getInstList().erase(PN);
PN->eraseFromParent();
continue;
}