diff options
author | Tanya Lattner <tonic@nondot.org> | 2005-02-24 02:14:44 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2005-02-24 02:14:44 +0000 |
commit | ee47100d445c638e63fcee1d4a64ff4385b05fb2 (patch) | |
tree | 44995fd5aa6c1d99ccb613730f9e8ad36ac2a623 /llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp | |
parent | 272f3527a31d4d867175d723ec2efb88a13924da (diff) | |
download | bcm5719-llvm-ee47100d445c638e63fcee1d4a64ff4385b05fb2.tar.gz bcm5719-llvm-ee47100d445c638e63fcee1d4a64ff4385b05fb2.zip |
Only print out machine instructions before modulo scheduling if we are actually doing modulo scheduling! :)
llvm-svn: 20292
Diffstat (limited to 'llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp index c962328e0ee..fc96891c068 100644 --- a/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp +++ b/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp @@ -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. |