[FastISel][AArch64] Fold compare with zero and branch into CBZ and CBNZ.
authorJuergen Ributzka <juergen@apple.com>
Wed, 17 Sep 2014 18:05:34 +0000 (18:05 +0000)
committerJuergen Ributzka <juergen@apple.com>
Wed, 17 Sep 2014 18:05:34 +0000 (18:05 +0000)
commit07c9ae576c6c23556b999a0a55a3c3038a574ab5
tree9816629328d26e580cf0c94677fca69e82ca148b
parent5607f8d0844c191179a3803e5ab87fb9a975940a
[FastISel][AArch64] Fold compare with zero and branch into CBZ and CBNZ.

This takes advanatage of the CBZ and CBNZ instruction to further optimize the
common null check pattern into a single instruction.

This is related to rdar://problem/18358882.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217972 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64FastISel.cpp
test/CodeGen/AArch64/fast-isel-cbz.ll [new file with mode: 0644]