mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-09 07:24:39 +00:00
Fix a failure I accidentally caused in my last commit by mishandling the
removal of redundant phis. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40650 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -747,6 +747,8 @@ Value *GVN::GetValueForBlock(BasicBlock *BB, LoadInst* orig,
|
||||
PN->replaceAllUsesWith(first);
|
||||
PN->eraseFromParent();
|
||||
|
||||
Phis[BB] = first;
|
||||
|
||||
return first;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user