Teach MachineCSE how to do simple cross-block CSE involving physregs. This allows...
authorEli Friedman <eli.friedman@gmail.com>
Wed, 4 May 2011 19:54:24 +0000 (19:54 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 4 May 2011 19:54:24 +0000 (19:54 +0000)
commit49cec1d818d0c7d801e786c458896a60eb424524
tree882141ee27beb9149f5029976eb6bdf2c3c1f58e
parent2abb82b1d3bc31d75b7c03d76f7343d450f7b394
Teach MachineCSE how to do simple cross-block CSE involving physregs.  This allows, for example, eliminating duplicate cmpl's on x86. Part of rdar://problem/8259436 .

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130862 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineCSE.cpp
test/CodeGen/Thumb2/thumb2-cbnz.ll
test/CodeGen/X86/cmp-redundant.ll [new file with mode: 0644]