aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-24 21:26:21 +0000
committerChris Lattner <sabre@nondot.org>2008-11-24 21:26:21 +0000
commitae297f8da5a354f75a30dc5689a88615ded05676 (patch)
tree72f9e654409c0cc80a0cc6a9279d34e0056a4398
parent612e0b701f2f7d45f28517dcac1251a71e74a421 (diff)
downloadexternal_llvm-ae297f8da5a354f75a30dc5689a88615ded05676.zip
external_llvm-ae297f8da5a354f75a30dc5689a88615ded05676.tar.gz
external_llvm-ae297f8da5a354f75a30dc5689a88615ded05676.tar.bz2
reenable the right part of the code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59985 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/CodeGenPrepare.cpp b/lib/Transforms/Scalar/CodeGenPrepare.cpp
index 5edaf2e..96c2e70 100644
--- a/lib/Transforms/Scalar/CodeGenPrepare.cpp
+++ b/lib/Transforms/Scalar/CodeGenPrepare.cpp
@@ -208,7 +208,7 @@ void CodeGenPrepare::EliminateMostlyEmptyBlock(BasicBlock *BB) {
while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) {
Value *NewVal = PN->getIncomingValue(0);
// Replace self referencing PHI with undef, it must be dead.
- //if (NewVal == PN) NewVal = UndefValue::get(PN->getType());
+ if (NewVal == PN) NewVal = UndefValue::get(PN->getType());
PN->replaceAllUsesWith(NewVal);
PN->eraseFromParent();
}