Add another machine-code printing pass when post-pass scheduling is run.

llvm-svn: 59746
This commit is contained in:
Dan Gohman 2008-11-20 19:54:21 +00:00
parent 0c43c5a17f
commit 3b3afa49f8

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