summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-11-20 19:54:21 +0000
committerDan Gohman <gohman@apple.com>2008-11-20 19:54:21 +0000
commit06613bc7de1ef3496081a2209745abf5883d2242 (patch)
tree98dc4f095bfd635357f1117db41815622544b51e /llvm/lib/CodeGen
parent38642e598e2417f414c558d27e4b12000ed767e2 (diff)
downloadbcm5719-llvm-06613bc7de1ef3496081a2209745abf5883d2242.tar.gz
bcm5719-llvm-06613bc7de1ef3496081a2209745abf5883d2242.zip
Add another machine-code printing pass when post-pass scheduling is run.
llvm-svn: 59746
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 2397a160e93..e10be696142 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -226,9 +226,13 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, bool Fast) {
PM.add(createMachineFunctionPrinterPass(cerr));
// Second pass scheduler.
- if (!Fast && !DisablePostRAScheduler)
+ if (!Fast && !DisablePostRAScheduler) {
PM.add(createPostRAScheduler());
+ if (PrintMachineCode)
+ PM.add(createMachineFunctionPrinterPass(cerr));
+ }
+
// Branch folding must be run after regalloc and prolog/epilog insertion.
if (!Fast)
PM.add(createBranchFoldingPass(getEnableTailMergeDefault()));
OpenPOWER on IntegriCloud