projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
612e0b7
)
reenable the right part of the code.
author
Chris Lattner
<sabre@nondot.org>
Mon, 24 Nov 2008 21:26:21 +0000
(21:26 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 24 Nov 2008 21:26:21 +0000
(21:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59985
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/CodeGenPrepare.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/CodeGenPrepare.cpp
b/lib/Transforms/Scalar/CodeGenPrepare.cpp
index 5edaf2ee44a374b120f664055951b12637592458..96c2e7013b453919fc9854de5ee411148c6f1749 100644
(file)
--- 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();
}