diff options
| author | Dan Gohman <gohman@apple.com> | 2009-11-09 18:19:43 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-11-09 18:19:43 +0000 |
| commit | 5196e415ad1f0241e65c5067fe7ca516702854cd (patch) | |
| tree | 731d3cb4e9cc63352b822ed929b8a28e1d8dfb7e /llvm/lib/Analysis/LoopInfo.cpp | |
| parent | 6f67f8902aaf0db1ffed1214fee25023dedc15b8 (diff) | |
| download | llvm-5196e415ad1f0241e65c5067fe7ca516702854cd.zip llvm-5196e415ad1f0241e65c5067fe7ca516702854cd.tar.gz llvm-5196e415ad1f0241e65c5067fe7ca516702854cd.tar.bz2 | |
Minor tidiness fixes.
llvm-svn: 86565
Diffstat (limited to 'llvm/lib/Analysis/LoopInfo.cpp')
| -rw-r--r-- | llvm/lib/Analysis/LoopInfo.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/LoopInfo.cpp b/llvm/lib/Analysis/LoopInfo.cpp index b5f407dfd..1c614b0 100644 --- a/llvm/lib/Analysis/LoopInfo.cpp +++ b/llvm/lib/Analysis/LoopInfo.cpp @@ -263,14 +263,13 @@ bool Loop::isLCSSAForm() const { SmallPtrSet<BasicBlock *, 16> LoopBBs(block_begin(), block_end()); for (block_iterator BI = block_begin(), E = block_end(); BI != E; ++BI) { - BasicBlock *BB = *BI; - for (BasicBlock ::iterator I = BB->begin(), E = BB->end(); I != E;++I) + BasicBlock *BB = *BI; + for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E;++I) for (Value::use_iterator UI = I->use_begin(), E = I->use_end(); UI != E; ++UI) { BasicBlock *UserBB = cast<Instruction>(*UI)->getParent(); - if (PHINode *P = dyn_cast<PHINode>(*UI)) { + if (PHINode *P = dyn_cast<PHINode>(*UI)) UserBB = P->getIncomingBlock(UI); - } // Check the current block, as a fast-path. Most values are used in // the same block they are defined in. |
