diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-09-25 21:38:11 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-09-25 21:38:11 +0000 |
commit | 3872b3c13e745a76d073bdf50a60dbbb740c37f5 (patch) | |
tree | c919d7c0b1783672a557f7e2e53e3976d1236586 /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
parent | 63f475a212140302f9938b8bc1631186e800e5e9 (diff) | |
download | bcm5719-llvm-3872b3c13e745a76d073bdf50a60dbbb740c37f5.tar.gz bcm5719-llvm-3872b3c13e745a76d073bdf50a60dbbb740c37f5.zip |
Flip -disable-post-RA-scheduler to -post-RA-scheduler.
llvm-svn: 82803
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 94c6fa6b833..64e28fb764f 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -45,11 +45,13 @@ static cl::opt<bool> VerifyMachineCode("verify-machineinstrs", cl::Hidden, cl::desc("Verify generated machine code"), cl::init(getenv("LLVM_VERIFY_MACHINEINSTRS")!=NULL)); -// When this works it will be on by default. +// This is not enabled by default due to 1) high compile time cost, 2) it's not +// beneficial to all targets. The plan is to let targets decide whether this +// is enabled. static cl::opt<bool> -DisablePostRAScheduler("disable-post-RA-scheduler", - cl::desc("Disable scheduling after register allocation"), - cl::init(true)); +EnablePostRAScheduler("post-RA-scheduler", + cl::desc("Enable scheduling after register allocation"), + cl::init(false)); // Enable or disable FastISel. Both options are needed, because // FastISel is enabled by default with -fast, and we wish to be @@ -324,7 +326,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, printAndVerify(PM); // Second pass scheduler. - if (OptLevel != CodeGenOpt::None && !DisablePostRAScheduler) { + if (OptLevel != CodeGenOpt::None && EnablePostRAScheduler) { PM.add(createPostRAScheduler()); printAndVerify(PM); } |