diff options
author | Dan Gohman <gohman@apple.com> | 2008-11-20 19:54:21 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-11-20 19:54:21 +0000 |
commit | 5ce0973f7f4d149f986d16d1a1f79b131fd70423 (patch) | |
tree | edaba1356b962756dfe687499ee53244ba5a232b /lib/CodeGen/LLVMTargetMachine.cpp | |
parent | e0de705eb7a1a306f6d9632144716c16066cd7f1 (diff) |
Add another machine-code printing pass when post-pass scheduling is run.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59746 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | lib/CodeGen/LLVMTargetMachine.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 2397a160e9..e10be69614 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/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())); |