mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-21 03:37:47 +00:00
Print more loop info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115951 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8fc3d1187c
commit
452a9fdf54
@ -886,6 +886,22 @@ void SplitEditor::splitAroundLoop(const MachineLoop *Loop) {
|
||||
SplitAnalysis::LoopBlocks Blocks;
|
||||
sa_.getLoopBlocks(Loop, Blocks);
|
||||
|
||||
DEBUG({
|
||||
dbgs() << " splitAroundLoop";
|
||||
for (SplitAnalysis::BlockPtrSet::iterator I = Blocks.Loop.begin(),
|
||||
E = Blocks.Loop.end(); I != E; ++I)
|
||||
dbgs() << " BB#" << (*I)->getNumber();
|
||||
dbgs() << ", preds:";
|
||||
for (SplitAnalysis::BlockPtrSet::iterator I = Blocks.Preds.begin(),
|
||||
E = Blocks.Preds.end(); I != E; ++I)
|
||||
dbgs() << " BB#" << (*I)->getNumber();
|
||||
dbgs() << ", exits:";
|
||||
for (SplitAnalysis::BlockPtrSet::iterator I = Blocks.Exits.begin(),
|
||||
E = Blocks.Exits.end(); I != E; ++I)
|
||||
dbgs() << " BB#" << (*I)->getNumber();
|
||||
dbgs() << '\n';
|
||||
});
|
||||
|
||||
// Break critical edges as needed.
|
||||
SplitAnalysis::BlockPtrSet CriticalExits;
|
||||
sa_.getCriticalExits(Blocks, CriticalExits);
|
||||
|
Loading…
x
Reference in New Issue
Block a user