]> granicus.if.org Git - llvm/commit
[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)
commit2597299d8e56be362addf6dc441a404ffa266783
treebdc30eb4c51489ea033ae2473d5aebe7180826ba
parentfb6a2d6627b042255635be7daca52fa2985b94f7
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298856 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstructionSelector.cpp
lib/Target/AArch64/AArch64InstructionSelector.h
test/CodeGen/AArch64/GlobalISel/select-cbz.mir [new file with mode: 0644]