diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-02-05 08:46:33 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-02-05 08:46:33 +0000 |
commit | 1be1216fa8353c5da53fc5b3bb197034e936c55b (patch) | |
tree | 08822f993a18a54f8c71f5daf33c0c8bb07afe9f /lib | |
parent | e6ba0287d7c9a8b7fc7fee66ce3091bb27639c3b (diff) | |
download | external_llvm-1be1216fa8353c5da53fc5b3bb197034e936c55b.zip external_llvm-1be1216fa8353c5da53fc5b3bb197034e936c55b.tar.gz external_llvm-1be1216fa8353c5da53fc5b3bb197034e936c55b.tar.bz2 |
Turn on machine LICM in non-fast mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63855 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/LLVMTargetMachine.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index c9ff15d..7def8fa 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -42,10 +42,6 @@ static cl::opt<bool> PrintGCInfo("print-gc", cl::Hidden, static cl::opt<bool> EnableSinking("enable-sinking", cl::init(false), cl::Hidden, cl::desc("Perform sinking on machine code")); -static cl::opt<bool> -EnableLICM("machine-licm", - cl::init(false), cl::Hidden, - cl::desc("Perform loop-invariant code motion on machine code")); // When this works it will be on by default. static cl::opt<bool> @@ -187,7 +183,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, bool Fast) { if (PrintMachineCode) PM.add(createMachineFunctionPrinterPass(cerr)); - if (EnableLICM) + if (!Fast) PM.add(createMachineLICMPass()); if (EnableSinking) |