[ARM64] Fix the information we give to the peephole optimizer for comparison.
authorQuentin Colombet <qcolombet@apple.com>
Wed, 23 Apr 2014 20:43:38 +0000 (20:43 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Wed, 23 Apr 2014 20:43:38 +0000 (20:43 +0000)
commit28a24ca47165d035df5c5533071970f96c3b4808
tree92ebee1f0c68c8a52ea436e64d93f7d1f1dc336f
parent0f31056e7a29374ce549dbac23996cfd844c8cc9
[ARM64] Fix the information we give to the peephole optimizer for comparison.
ANDS does not use the same encoding scheme as other xxxS instructions (e.g.,
ADDS). Take that into account to avoid wrong peephole optimization.

<rdar://problem/16693089>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207020 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM64/ARM64InstrInfo.cpp
test/CodeGen/ARM64/ands-bad-peephole.ll [new file with mode: 0644]