projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0de705
)
Add another machine-code printing pass when post-pass scheduling is run.
author
Dan Gohman
<gohman@apple.com>
Thu, 20 Nov 2008 19:54:21 +0000
(19:54 +0000)
committer
Dan Gohman
<gohman@apple.com>
Thu, 20 Nov 2008 19:54:21 +0000
(19:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59746
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/LLVMTargetMachine.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/LLVMTargetMachine.cpp
b/lib/CodeGen/LLVMTargetMachine.cpp
index 2397a160e933d1722810e133d12fbdc1d6b83669..e10be69614211bbb36c5590da7c2b2d5d152d2f9 100644
(file)
--- 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()));