aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-07-31 20:18:28 +0000
committerOwen Anderson <resistor@mac.com>2007-07-31 20:18:28 +0000
commitb95f9d565f51a431449a2ae60211aa0e07709c6c (patch)
treea8530dd5386b71f12ef3880f5ad32165f6d87311 /lib/Transforms
parentc7d1114ade08821746f448a6b6e9507da807022d (diff)
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
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/GVN.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp
index 2dde2f9392..ff66250244 100644
--- a/lib/Transforms/Scalar/GVN.cpp
+++ b/lib/Transforms/Scalar/GVN.cpp
@@ -747,6 +747,8 @@ Value *GVN::GetValueForBlock(BasicBlock *BB, LoadInst* orig,
PN->replaceAllUsesWith(first);
PN->eraseFromParent();
+ Phis[BB] = first;
+
return first;
}