diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-03-09 03:21:12 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-03-09 03:21:12 +0000 |
commit | 2b8890f8354ef742b6917695c14826cf52b23b66 (patch) | |
tree | 07c66ab0d3e9a521f8554ea6a196a3873ad91db1 /lib/CodeGen/LLVMTargetMachine.cpp | |
parent | a351bd56f1e2d18aa86a69850d824bcb417a2491 (diff) | |
download | external_llvm-2b8890f8354ef742b6917695c14826cf52b23b66.tar.gz external_llvm-2b8890f8354ef742b6917695c14826cf52b23b66.tar.bz2 external_llvm-2b8890f8354ef742b6917695c14826cf52b23b66.zip |
- Make the machine cse dumb coalescer (as opposed to the more awesome simple
coalescer) handle sub-register classes.
- Add heuristics to avoid non-profitable cse. Given the current lack of live
range splitting, avoid cse when an expression has PHI use and the would be
new use is in a BB where the expression wasn't already being used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | lib/CodeGen/LLVMTargetMachine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 5e888650ba..03dd152d8c 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -328,11 +328,11 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, PM.add(createOptimizeExtsPass()); if (!DisableMachineLICM) PM.add(createMachineLICMPass()); - if (EnableMachineCSE) + //if (EnableMachineCSE) PM.add(createMachineCSEPass()); if (!DisableMachineSink) PM.add(createMachineSinkingPass()); - printAndVerify(PM, "After MachineLICM and MachineSinking", + printAndVerify(PM, "After Machine LICM, CSE and Sinking passes", /* allowDoubleDefs= */ true); } |