summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-05-10 21:06:21 +0000
committerAndrew Trick <atrick@apple.com>2012-05-10 21:06:21 +0000
commitc5d7008f2713e9034db5131ecb006d7ef88c9e3a (patch)
tree507e28369c7b9d258861db5cafb0be6912249ede
parent419eae2db7741b9186327fe3d2d8a7f6eef13c3a (diff)
downloadbcm5719-llvm-c5d7008f2713e9034db5131ecb006d7ef88c9e3a.tar.gz
bcm5719-llvm-c5d7008f2713e9034db5131ecb006d7ef88c9e3a.zip
misched: Print machineinstrs with -debug-only=misched
llvm-svn: 156576
-rw-r--r--llvm/lib/CodeGen/MachineScheduler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index 650fa5da88e..7a099cdadef 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -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>();
OpenPOWER on IntegriCloud