mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
Run post-RA scheduling after branch folding, as it tends to
obscure tail-merging opportunities. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59967 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f003276ee6
commit
cb72dd6776
@ -222,6 +222,13 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, bool Fast) {
|
|||||||
// Insert prolog/epilog code. Eliminate abstract frame index references...
|
// Insert prolog/epilog code. Eliminate abstract frame index references...
|
||||||
PM.add(createPrologEpilogCodeInserter());
|
PM.add(createPrologEpilogCodeInserter());
|
||||||
|
|
||||||
|
if (PrintMachineCode)
|
||||||
|
PM.add(createMachineFunctionPrinterPass(cerr));
|
||||||
|
|
||||||
|
// Branch folding must be run after regalloc and prolog/epilog insertion.
|
||||||
|
if (!Fast)
|
||||||
|
PM.add(createBranchFoldingPass(getEnableTailMergeDefault()));
|
||||||
|
|
||||||
if (PrintMachineCode)
|
if (PrintMachineCode)
|
||||||
PM.add(createMachineFunctionPrinterPass(cerr));
|
PM.add(createMachineFunctionPrinterPass(cerr));
|
||||||
|
|
||||||
@ -233,10 +240,6 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, bool Fast) {
|
|||||||
PM.add(createMachineFunctionPrinterPass(cerr));
|
PM.add(createMachineFunctionPrinterPass(cerr));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Branch folding must be run after regalloc and prolog/epilog insertion.
|
|
||||||
if (!Fast)
|
|
||||||
PM.add(createBranchFoldingPass(getEnableTailMergeDefault()));
|
|
||||||
|
|
||||||
PM.add(createGCMachineCodeAnalysisPass());
|
PM.add(createGCMachineCodeAnalysisPass());
|
||||||
|
|
||||||
if (PrintMachineCode)
|
if (PrintMachineCode)
|
||||||
|
Loading…
Reference in New Issue
Block a user