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:
Owen Anderson
2007-07-31 20:18:28 +00:00
parent c7d1114ade
commit b95f9d565f
2 changed files with 24 additions and 0 deletions

View File

@ -747,6 +747,8 @@ Value *GVN::GetValueForBlock(BasicBlock *BB, LoadInst* orig,
PN->replaceAllUsesWith(first);
PN->eraseFromParent();
Phis[BB] = first;
return first;
}