mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-31 10:34:17 +00:00
Count uses in all nested loops, not just the deepest.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115710 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fc3ef3c2e9
commit
9b90d7eae2
@ -68,7 +68,8 @@ void SplitAnalysis::analyzeUses() {
|
||||
MachineBasicBlock *MBB = MI->getParent();
|
||||
if (usingBlocks_[MBB]++)
|
||||
continue;
|
||||
if (MachineLoop *Loop = loops_.getLoopFor(MBB))
|
||||
for (MachineLoop *Loop = loops_.getLoopFor(MBB); Loop;
|
||||
Loop = Loop->getParentLoop())
|
||||
usingLoops_[Loop]++;
|
||||
}
|
||||
DEBUG(dbgs() << " counted "
|
||||
|
Loading…
x
Reference in New Issue
Block a user