[llvm-commits] [llvm] r115951 - /llvm/trunk/lib/CodeGen/SplitKit.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Thu Oct 7 11:47:07 PDT 2010
Author: stoklund
Date: Thu Oct 7 13:47:07 2010
New Revision: 115951
URL: http://llvm.org/viewvc/llvm-project?rev=115951&view=rev
Log:
Print more loop info.
Modified:
llvm/trunk/lib/CodeGen/SplitKit.cpp
Modified: llvm/trunk/lib/CodeGen/SplitKit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SplitKit.cpp?rev=115951&r1=115950&r2=115951&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SplitKit.cpp (original)
+++ llvm/trunk/lib/CodeGen/SplitKit.cpp Thu Oct 7 13:47:07 2010
@@ -886,6 +886,22 @@
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);
More information about the llvm-commits
mailing list