[RISCV] Support CONCAT_VECTORS on scalable masks
authorFraser Cormack <fraser@codeplay.com>
Tue, 8 Jun 2021 13:55:31 +0000 (14:55 +0100)
committerFraser Cormack <fraser@codeplay.com>
Wed, 9 Jun 2021 08:07:44 +0000 (09:07 +0100)
commite8f1f891031385a34f0548803f3bc76ce50544c1
treed625408a8722e76fc0743f99edc172787feae0b6
parent093750dd0be6b0729f8e817766c3d5849545e10c
[RISCV] Support CONCAT_VECTORS on scalable masks

This patch is a simple fix which registers CONCAT_VECTORS as
custom-lowered for scalable mask vectors. This follows the pattern of
all other scalable-vector types, as the default expansion of
CONCAT_VECTORS cannot handle scalable types, and even if it did it'd go
through the stack and generate worse code.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D103896
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rvv/setcc-fp-rv32.ll
llvm/test/CodeGen/RISCV/rvv/setcc-fp-rv64.ll
llvm/test/CodeGen/RISCV/rvv/setcc-integer-rv32.ll
llvm/test/CodeGen/RISCV/rvv/setcc-integer-rv64.ll