summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2005-02-24 02:14:44 +0000
committerTanya Lattner <tonic@nondot.org>2005-02-24 02:14:44 +0000
commitee47100d445c638e63fcee1d4a64ff4385b05fb2 (patch)
tree44995fd5aa6c1d99ccb613730f9e8ad36ac2a623 /llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
parent272f3527a31d4d867175d723ec2efb88a13924da (diff)
downloadbcm5719-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.cpp2
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.
OpenPOWER on IntegriCloud