mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-16 00:16:50 +00:00
don't invalidate PN, rewrite of this code is in progress anyway.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86639 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e34537856a
commit
e7c90967b1
@ -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…
Reference in New Issue
Block a user