mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-10 22:43:53 +00:00
don't invalidate PN, rewrite of this code is in progress anyway.
llvm-svn: 86639
This commit is contained in:
parent
a279728372
commit
a087a1ca04
@ -223,10 +223,11 @@ static void RemovePredecessorAndSimplify(BasicBlock *BB, BasicBlock *Pred,
|
||||
U = PNV;
|
||||
|
||||
// See if we can simplify it.
|
||||
if (Value *V = SimplifyInstruction(User, TD)) {
|
||||
User->replaceAllUsesWith(V);
|
||||
User->eraseFromParent();
|
||||
}
|
||||
if (User != PN)
|
||||
if (Value *V = SimplifyInstruction(User, TD)) {
|
||||
User->replaceAllUsesWith(V);
|
||||
User->eraseFromParent();
|
||||
}
|
||||
}
|
||||
|
||||
PN->replaceAllUsesWith(PNV);
|
||||
|
Loading…
x
Reference in New Issue
Block a user