diff options
author | Devang Patel <dpatel@apple.com> | 2007-08-22 21:07:41 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-08-22 21:07:41 +0000 |
commit | e854778562227a517e00924197f0f506cae9ad68 (patch) | |
tree | 2f3db815427b5e9d3e0a61c85e6bfdd49f4a3fbc /lib/Transforms | |
parent | 45db4bc3773a2cc4f891e4f00c7a257f1cf0227e (diff) | |
download | external_llvm-e854778562227a517e00924197f0f506cae9ad68.zip external_llvm-e854778562227a517e00924197f0f506cae9ad68.tar.gz external_llvm-e854778562227a517e00924197f0f506cae9ad68.tar.bz2 |
Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/LoopIndexSplit.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Transforms/Scalar/LoopIndexSplit.cpp b/lib/Transforms/Scalar/LoopIndexSplit.cpp index c84d75a..de8b08e 100644 --- a/lib/Transforms/Scalar/LoopIndexSplit.cpp +++ b/lib/Transforms/Scalar/LoopIndexSplit.cpp @@ -641,7 +641,6 @@ void LoopIndexSplit::removeBlocks(BasicBlock *DeadBB, Loop *LP, 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 @@ void LoopIndexSplit::removeBlocks(BasicBlock *DeadBB, Loop *LP, 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; |