mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 18:31:23 +00:00
trivial simplification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
decc86db0c
commit
fee3411379
@ -437,7 +437,7 @@ static PHINode *FindPHIToPartitionLoops(Loop *L, DominatorSet &DS) {
|
|||||||
if (!isa<Instruction>(V) || DS.dominates(cast<Instruction>(V), PN)) {
|
if (!isa<Instruction>(V) || DS.dominates(cast<Instruction>(V), PN)) {
|
||||||
// This is a degenerate PHI already, don't modify it!
|
// This is a degenerate PHI already, don't modify it!
|
||||||
PN->replaceAllUsesWith(V);
|
PN->replaceAllUsesWith(V);
|
||||||
PN->getParent()->getInstList().erase(PN);
|
PN->eraseFromParent();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user