diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-07 22:32:10 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-07 22:32:10 +0000 |
commit | 7398758719aeba17577affc0871d07af586134a6 (patch) | |
tree | a4e17ca696ca46b32985a444611c7edbfe111972 /llvm/lib/CodeGen/CodePlacementOpt.cpp | |
parent | be21aa34a0863350027179d1f85599e3bd370e83 (diff) | |
download | bcm5719-llvm-7398758719aeba17577affc0871d07af586134a6.tar.gz bcm5719-llvm-7398758719aeba17577affc0871d07af586134a6.zip |
Add some basic debug output.
llvm-svn: 105561
Diffstat (limited to 'llvm/lib/CodeGen/CodePlacementOpt.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodePlacementOpt.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CodePlacementOpt.cpp b/llvm/lib/CodeGen/CodePlacementOpt.cpp index 3ff2a046d23..e0e315c6c67 100644 --- a/llvm/lib/CodeGen/CodePlacementOpt.cpp +++ b/llvm/lib/CodeGen/CodePlacementOpt.cpp @@ -178,6 +178,8 @@ bool CodePlacementOpt::EliminateUnconditionalJumpsToTop(MachineFunction &MF, 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 @@ bool CodePlacementOpt::MoveDiscontiguousLoopBlocks(MachineFunction &MF, 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 |