[FastISel][AArch64] Fix and extend the tbz/tbnz pattern matching.
authorJuergen Ributzka <juergen@apple.com>
Tue, 25 Nov 2014 04:16:15 +0000 (04:16 +0000)
committerJuergen Ributzka <juergen@apple.com>
Tue, 25 Nov 2014 04:16:15 +0000 (04:16 +0000)
commita4ebd338c4ff45bb621fb8c4fc628ae0ca7df117
tree1c14832c3f8506e218e3ae0c44fde8bd9017e1f5
parente5aa5ce5b2fee21ad0ba845f61c66decde3698c1
[FastISel][AArch64] Fix and extend the tbz/tbnz pattern matching.

The pattern matching failed to recognize all instances of "-1", because when
comparing against "-1" we didn't use an APInt of the same bitwidth.

This commit fixes this and also adds inverse versions of the conditon to catch
more cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222722 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64FastISel.cpp
test/CodeGen/AArch64/fast-isel-tbz.ll