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
This commit is contained in:
Dan Gohman 2008-11-20 19:54:21 +00:00
parent e0de705eb7
commit 5ce0973f7f

View File

@ -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()));