[llvm-commits] [llvm] r105561 - /llvm/trunk/lib/CodeGen/CodePlacementOpt.cpp
Dan Gohman
gohman at apple.com
Mon Jun 7 15:32:11 PDT 2010
Author: djg
Date: Mon Jun 7 17:32:10 2010
New Revision: 105561
URL: http://llvm.org/viewvc/llvm-project?rev=105561&view=rev
Log:
Add some basic debug output.
Modified:
llvm/trunk/lib/CodeGen/CodePlacementOpt.cpp
Modified: llvm/trunk/lib/CodeGen/CodePlacementOpt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/CodePlacementOpt.cpp?rev=105561&r1=105560&r2=105561&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/CodePlacementOpt.cpp (original)
+++ llvm/trunk/lib/CodeGen/CodePlacementOpt.cpp Mon Jun 7 17:32:10 2010
@@ -178,6 +178,8 @@
continue;
// Move the block.
+ DEBUG(dbgs() << "CGP: Moving blocks starting at BB#" << Pred->getNumber()
+ << " to top of loop.\n");
Changed = true;
// Move it and all the blocks that can reach it via fallthrough edges
@@ -297,6 +299,8 @@
continue;
// Move the block.
+ DEBUG(dbgs() << "CGP: Moving blocks starting at BB#" << BB->getNumber()
+ << " to be contiguous with loop.\n");
Changed = true;
// Process this block and all loop blocks contiguous with it, to keep
More information about the llvm-commits
mailing list