[llvm-commits] [llvm] r41295 - /llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp
Devang Patel
dpatel at apple.com
Wed Aug 22 14:07:41 PDT 2007
Author: dpatel
Date: Wed Aug 22 16:07:41 2007
New Revision: 41295
URL: http://llvm.org/viewvc/llvm-project?rev=41295&view=rev
Log:
Remove dead code.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp?rev=41295&r1=41294&r2=41295&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp Wed Aug 22 16:07:41 2007
@@ -641,7 +641,6 @@
PredBlocks.push_back(P);
}
- BasicBlock *NewDominator = NULL;
for(BasicBlock::iterator FBI = FrontierBB->begin(), FBE = FrontierBB->end();
FBI != FBE; ++FBI) {
if (PHINode *PN = dyn_cast<PHINode>(FBI)) {
@@ -650,10 +649,6 @@
BasicBlock *P = *PI;
PN->removeIncomingValue(P);
}
- // If we have not identified new dominator then see if we can identify
- // one based on remaining incoming PHINode values.
- if (NewDominator == NULL && PN->getNumIncomingValues() == 1)
- NewDominator = PN->getIncomingBlock(0);
}
else
break;
More information about the llvm-commits
mailing list