[AArch64][SVE] Add wide compare immediate patterns
authorCullen Rhodes <cullen.rhodes@arm.com>
Mon, 2 Dec 2019 11:20:28 +0000 (11:20 +0000)
committerCullen Rhodes <cullen.rhodes@arm.com>
Tue, 10 Dec 2019 10:41:22 +0000 (10:41 +0000)
commit1b9a608c8440b655c15378f3f7a13180281e2613
treeba685bf52cf1cd08bc5ab0fe3e2c468b3bb92f6d
parent4763267eeee7ad0013d107b895dec1900b4f315f
[AArch64][SVE] Add wide compare immediate patterns

Summary:
Recognize wide compares where the wide operand is a splat of a scalar
value in the appropriate range and convert to the immediate variant of
the instruction.

Patch by Graham Hunter

Reviewers: sdesmalen, efriedma, dancgr, rovka, rengolin

Reviewed By: efriedma

Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl,
llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D71009
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/sve-intrinsics-int-compares-with-imm.ll