[FastISel][AArch64] Emit immediate version of icmp (subs) for null pointer check.
authorJuergen Ributzka <juergen@apple.com>
Mon, 27 Oct 2014 19:58:36 +0000 (19:58 +0000)
committerJuergen Ributzka <juergen@apple.com>
Mon, 27 Oct 2014 19:58:36 +0000 (19:58 +0000)
commit7ccebec66883b6e97a22a4e711b7c4585e94a186
treea140e1b2633b59e01c5e18808423cf8cdce801b2
parent0190fea9410e81ece2abec14cc48a5ebd3262c8d
[FastISel][AArch64] Emit immediate version of icmp (subs) for null pointer check.

This is a minor change to use the immediate version when the operand is a null
value. This should get rid of an unnecessary 'mov' instruction in debug
builds and align the code more with the one generated by SelectionDAG.

This fixes rdar://problem/18785125.

llvm-svn: 220713
llvm/lib/Target/AArch64/AArch64FastISel.cpp
llvm/test/CodeGen/AArch64/arm64-fast-isel-icmp.ll