[GlobalISel][AArch64] Select CBZ.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Mon, 27 Mar 2017 16:35:31 +0000 (16:35 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Mon, 27 Mar 2017 16:35:31 +0000 (16:35 +0000)
commit641cb203b6f1ea2d92d17a99a04c8d971f2103e5
tree10a2a9dce8fdd3ece2719cd082e234f5ca4ee2c2
parent2d29998f22b8b22019da8ca4ef58be9397be14f2
[GlobalISel][AArch64] Select CBZ.

CBZ/CBNZ represent a substantial portion of all conditional branches.
Look through G_ICMP to select them.

We can't use tablegen yet because the existing patterns match an
AArch64ISD node.

llvm-svn: 298856
llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
llvm/lib/Target/AArch64/AArch64InstructionSelector.h
llvm/test/CodeGen/AArch64/GlobalISel/select-cbz.mir [new file with mode: 0644]