diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-11-24 21:26:21 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-11-24 21:26:21 +0000 |
| commit | d78894197a3bc774817bc8b4dcff13c5bdad29dc (patch) | |
| tree | 08045e1c6958eaf9226d372176097ff6e422bb6c /llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp | |
| parent | 3ca000af83433cfe030d15ce286648e381716854 (diff) | |
| download | bcm5719-llvm-d78894197a3bc774817bc8b4dcff13c5bdad29dc.tar.gz bcm5719-llvm-d78894197a3bc774817bc8b4dcff13c5bdad29dc.zip | |
reenable the right part of the code.
llvm-svn: 59985
Diffstat (limited to 'llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp index 5edaf2ee44a..96c2e7013b4 100644 --- a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp +++ b/llvm/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(); } |

