diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-03-10 03:07:41 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-03-10 03:07:41 +0000 |
commit | d8859015a09b34c91c803827b2d04087e0c44ede (patch) | |
tree | 7d96230aae477b51f64bbdeaab85a8dd9f4e8427 /lib/CodeGen/LLVMTargetMachine.cpp | |
parent | 58f7d86dfa16850034769ce6d27269a5da07ac10 (diff) | |
download | external_llvm-d8859015a09b34c91c803827b2d04087e0c44ede.zip external_llvm-d8859015a09b34c91c803827b2d04087e0c44ede.tar.gz external_llvm-d8859015a09b34c91c803827b2d04087e0c44ede.tar.bz2 |
Enable machine cse pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98132 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-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 130fd8e..9bc0b71 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -67,9 +67,6 @@ 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> EnableMachineCSE("enable-machine-cse", cl::Hidden, - cl::desc("Enable Machine CSE")); - static cl::opt<cl::boolOrDefault> AsmVerbose("asm-verbose", cl::desc("Add comments to directives."), cl::init(cl::BOU_UNSET)); @@ -328,8 +325,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, PM.add(createOptimizeExtsPass()); if (!DisableMachineLICM) PM.add(createMachineLICMPass()); - if (EnableMachineCSE) - PM.add(createMachineCSEPass()); + PM.add(createMachineCSEPass()); if (!DisableMachineSink) PM.add(createMachineSinkingPass()); printAndVerify(PM, "After Machine LICM, CSE and Sinking passes", |