Allow machine-cse to look across MBB boundary when cse'ing instructions that
authorEvan Cheng <evan.cheng@apple.com>
Tue, 10 Jan 2012 02:02:58 +0000 (02:02 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 10 Jan 2012 02:02:58 +0000 (02:02 +0000)
commit97b5beb7fe7bb776654b04ae6c18af6ea15c74f7
treeecf43bc095170286e1b89ca00a61e91a428d6449
parent64925c55c65f9345a69fb67db07aa62cfb723577
Allow machine-cse to look across MBB boundary when cse'ing instructions that
define physical registers. It's currently very restrictive, only catching
cases where the CE is in an immediate (and only) predecessor. But it catches
a surprising large number of cases.

rdar://10660865

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147827 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineCSE.cpp
test/CodeGen/ARM/machine-cse-cmp.ll
test/CodeGen/Thumb2/thumb2-cbnz.ll
test/CodeGen/X86/machine-cse.ll