Only print out machine instructions before modulo scheduling if we are actually doing...
authorTanya Lattner <tonic@nondot.org>
Thu, 24 Feb 2005 02:14:44 +0000 (02:14 +0000)
committerTanya Lattner <tonic@nondot.org>
Thu, 24 Feb 2005 02:14:44 +0000 (02:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20292 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9TargetMachine.cpp

index c962328e0ee33788f7d3c1a10e16b646514f2414..fc96891c0688bc8b23ce7b5990e1395cae276cbb 100644 (file)
@@ -195,7 +195,7 @@ SparcV9TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out
   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.