misched: Print machineinstrs with -debug-only=misched
authorAndrew Trick <atrick@apple.com>
Thu, 10 May 2012 21:06:21 +0000 (21:06 +0000)
committerAndrew Trick <atrick@apple.com>
Thu, 10 May 2012 21:06:21 +0000 (21:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156576 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineScheduler.cpp

index 650fa5da88e66b2940fc458fc8522f1318f5518c..7a099cdadef3ae054090e23d7149d279e7c64a4f 100644 (file)
@@ -173,6 +173,8 @@ nextIfDebug(MachineBasicBlock::iterator I, MachineBasicBlock::iterator End) {
 /// design would be to split blocks at scheduling boundaries, but LLVM has a
 /// general bias against block splitting purely for implementation simplicity.
 bool MachineScheduler::runOnMachineFunction(MachineFunction &mf) {
+  DEBUG(dbgs() << "Before MISsched:\n"; mf.print(dbgs()));
+
   // Initialize the context of the pass.
   MF = &mf;
   MLI = &getAnalysis<MachineLoopInfo>();