Only print out machine instructions before modulo scheduling if we are actually doing modulo scheduling! :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20292 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
index c962328..fc96891 100644
--- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp
+++ b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
@@ -195,7 +195,7 @@
   if (!DisableSched)
     PM.add(createInstructionSchedulingWithSSAPass(*this));
 
-  if(PrintMachineCode)
+  if(PrintMachineCode && EnableModSched)
     PM.add(createMachineFunctionPrinterPass(&std::cerr, "Before modulo scheduling:\n"));
 
   //Use ModuloScheduling if enabled, otherwise use local scheduling if not disabled.