ARM: fix peephole optimisation of TST
authorTim Northover <tnorthover@apple.com>
Tue, 28 Apr 2015 22:03:55 +0000 (22:03 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 28 Apr 2015 22:03:55 +0000 (22:03 +0000)
commit9f7d13868a875696a52f6c5d1f51a489e15eef26
tree7d1aef5c0243d9d756ce009a22feb2c7d56e36ce
parentf75160b8d9ddd4df09dfcc1eb3f025497edbadac
ARM: fix peephole optimisation of TST

We were trying to look through COPY instructions, but only to the next
instruction in a BB and incorrectly anyway. The cases where that would actually
be a good idea are rare enough (and not even tested!) that it's not worth
trying to get right.

rdar://20721342

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236050 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMBaseInstrInfo.cpp
test/CodeGen/ARM/arm-and-tst-peephole.ll