Skip to content
Snippets Groups Projects
Commit ee47100d authored by Tanya Lattner's avatar Tanya Lattner
Browse files

Only print out machine instructions before modulo scheduling if we are...

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

llvm-svn: 20292
parent 272f3527
No related branches found
No related tags found
No related merge requests found
...@@ -195,7 +195,7 @@ SparcV9TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out ...@@ -195,7 +195,7 @@ SparcV9TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out
if (!DisableSched) if (!DisableSched)
PM.add(createInstructionSchedulingWithSSAPass(*this)); PM.add(createInstructionSchedulingWithSSAPass(*this));
if(PrintMachineCode) if(PrintMachineCode && EnableModSched)
PM.add(createMachineFunctionPrinterPass(&std::cerr, "Before modulo scheduling:\n")); PM.add(createMachineFunctionPrinterPass(&std::cerr, "Before modulo scheduling:\n"));
//Use ModuloScheduling if enabled, otherwise use local scheduling if not disabled. //Use ModuloScheduling if enabled, otherwise use local scheduling if not disabled.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment