Reduce (cmp 0, and_su (foo, bar)) into (bit foo, bar). This saves extra instruction...
authorAnton Korobeynikov <asl@math.spbu.ru>
Tue, 8 Dec 2009 01:03:04 +0000 (01:03 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Tue, 8 Dec 2009 01:03:04 +0000 (01:03 +0000)
commit9aa1ec87b0d04730d06d20c63486fc4a8a06b458
treeb3da02e90ef28e90101effbcd4ca086c3e126fe0
parent3a41ddb1b98ba6f8ea8b2b65e9d9d0e53d3d4419
Reduce (cmp 0, and_su (foo, bar)) into (bit foo, bar). This saves extra instruction. Patch inspired by Brian Lucas!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90819 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/MSP430/MSP430InstrInfo.td
test/CodeGen/MSP430/bit.ll [new file with mode: 0644]