mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Post regalloc LICM. Work in progress.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100592 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -66,6 +66,9 @@ static cl::opt<bool> VerifyMachineCode("verify-machineinstrs", cl::Hidden,
|
||||
cl::desc("Verify generated machine code"),
|
||||
cl::init(getenv("LLVM_VERIFY_MACHINEINSTRS")!=NULL));
|
||||
|
||||
static cl::opt<bool> PostRAMachineLICM("postra-machine-licm", cl::Hidden,
|
||||
cl::desc("Enable post-regalloc Machine LICM"));
|
||||
|
||||
static cl::opt<cl::boolOrDefault>
|
||||
AsmVerbose("asm-verbose", cl::desc("Add comments to directives."),
|
||||
cl::init(cl::BOU_UNSET));
|
||||
@@ -343,6 +346,10 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
|
||||
// kill markers.
|
||||
PM.add(createStackSlotColoringPass(false));
|
||||
printAndVerify(PM, "After StackSlotColoring");
|
||||
|
||||
// Run post-ra machine LICM to hoist reloads / remats.
|
||||
if (PostRAMachineLICM)
|
||||
PM.add(createMachineLICMPass(false));
|
||||
}
|
||||
|
||||
// Run post-ra passes.
|
||||
|
||||
Reference in New Issue
Block a user