[llvm-commits] [llvm] r59746 - /llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
Dan Gohman
gohman at apple.com
Thu Nov 20 11:54:21 PST 2008
Author: djg
Date: Thu Nov 20 13:54:21 2008
New Revision: 59746
URL: http://llvm.org/viewvc/llvm-project?rev=59746&view=rev
Log:
Add another machine-code printing pass when post-pass scheduling is run.
Modified:
llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
Modified: llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp?rev=59746&r1=59745&r2=59746&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp (original)
+++ llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp Thu Nov 20 13:54:21 2008
@@ -226,9 +226,13 @@
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()));
More information about the llvm-commits
mailing list