mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
Minor tidiness fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86565 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
28a4c78621
commit
81d893ccf2
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user