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 | 19e44b4510c565433ba0e74a4312b52000b90ade (patch) | |
tree | 4d77680f02bf53c15dc1427bcb2c84333589b94d /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
parent | 772952f46e7d69397cbf56a5e66acf509102cf21 (diff) | |
download | bcm5719-llvm-19e44b4510c565433ba0e74a4312b52000b90ade.tar.gz bcm5719-llvm-19e44b4510c565433ba0e74a4312b52000b90ade.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.
llvm-svn: 98043
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 5e888650bae..03dd152d8cf 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/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); } |