[AArch64][SVE] Add patterns for VSELECT of immediates.
authorEli Friedman <efriedma@quicinc.com>
Sat, 2 May 2020 03:58:49 +0000 (20:58 -0700)
committerEli Friedman <efriedma@quicinc.com>
Tue, 12 May 2020 00:04:22 +0000 (17:04 -0700)
commita8874c76e8ae9ca67f6806f4c27ac8ba94232a21
tree09987fda66bf94ed26b295a9677707e79ee3b2e0
parent5633813bf376ef12056cc8ce34c03c445d0dbce5
[AArch64][SVE] Add patterns for VSELECT of immediates.

This covers forms involving "CPY (immediate, zeroing)".

This doesn't handle the case where the operands are reversed, and the
condition is freely invertible.  Not sure how to handle that.  Maybe a
DAGCombine.

Differential Revision: https://reviews.llvm.org/D79598
llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
llvm/lib/Target/AArch64/SVEInstrFormats.td
llvm/test/CodeGen/AArch64/sve-vselect-imm.ll [new file with mode: 0644]