MachineCSE: Update the heuristics for isProfitableToCSE.
authorManman Ren <mren@apple.com>
Tue, 7 Aug 2012 06:16:46 +0000 (06:16 +0000)
committerManman Ren <mren@apple.com>
Tue, 7 Aug 2012 06:16:46 +0000 (06:16 +0000)
commitba86b13ad9cd6a9707a954598863da1e2a9f773b
tree482ffd2aed786cddf7cce28e96075c7915155911
parentcbfce4557751acef4e7970d6e4b9583ced7e0e93
MachineCSE: Update the heuristics for isProfitableToCSE.

If the result of a common subexpression is used at all uses of the candidate
expression, CSE should not increase the live range of the common subexpression.

rdar://11393714 and rdar://11819721

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161396 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineCSE.cpp
test/CodeGen/X86/block-placement.ll
test/CodeGen/X86/machine-cse.ll