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 | ba1fe142450f46b44deccb21c8b422bc02b32d8b (patch) | |
tree | dbbd8eb64178c7ece13c86f4126fdbd74d6cf2ea /lib/CodeGen | |
parent | 8ece123ebd875a39e1fcad7d44e3e2d30383f942 (diff) | |
download | external_llvm-ba1fe142450f46b44deccb21c8b422bc02b32d8b.zip external_llvm-ba1fe142450f46b44deccb21c8b422bc02b32d8b.tar.gz external_llvm-ba1fe142450f46b44deccb21c8b422bc02b32d8b.tar.bz2 |
Add some basic debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105561 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CodePlacementOpt.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CodePlacementOpt.cpp b/lib/CodeGen/CodePlacementOpt.cpp index 3ff2a04..e0e315c 100644 --- a/lib/CodeGen/CodePlacementOpt.cpp +++ b/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 |