Re-commit r130862 with a minor change to avoid an iterator running off the edge in...
commitbaf717a08a0bc8cb0a7931ea3ce51d063a8fe6f0
authorEli Friedman <eli.friedman@gmail.com>
Wed, 4 May 2011 22:10:36 +0000 (4 22:10 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 4 May 2011 22:10:36 +0000 (4 22:10 +0000)
treea783b0a34d6af1c5765489ade3449320ebbec85f
parentb90584ae78a7acc4ac92e3ad52121a10c520b980
Re-commit r130862 with a minor change to avoid an iterator running off the edge in some cases.

Original message:

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@130877 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]