[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)
commiteb67bd8d745ef6541605ff2558c18dd551f59ef1
tree30b75432f01743292907023fa09c30cf90a53d82
parent32d1a96d6971cc3d076f5c2b38dd04bfbd6e369c
[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.

llvm-svn: 222722
llvm/lib/Target/AArch64/AArch64FastISel.cpp
llvm/test/CodeGen/AArch64/fast-isel-tbz.ll