- Make the machine cse dumb coalescer (as opposed to the more awesome simple
authorEvan Cheng <evan.cheng@apple.com>
Tue, 9 Mar 2010 03:21:12 +0000 (03:21 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 9 Mar 2010 03:21:12 +0000 (03:21 +0000)
commit31f94c7c22cbf59753764bc17130dca6a73c0b4e
tree07c66ab0d3e9a521f8554ea6a196a3873ad91db1
parent81d0c36d22142da8413f8b2483582df70968ecb3
- 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
lib/CodeGen/LLVMTargetMachine.cpp
lib/CodeGen/MachineCSE.cpp