[RISCV] Use vfirst.m to extract the first element from mask vector.
authorjacquesguan <Jianjian.Guan@streamcomputing.com>
Wed, 7 Dec 2022 07:41:27 +0000 (15:41 +0800)
committerjacquesguan <Jianjian.Guan@streamcomputing.com>
Tue, 3 Jan 2023 03:24:18 +0000 (11:24 +0800)
commitdb3f3243bb85253eaf0e483452fdbfd5baf7ffd1
tree9078189f6004adfec4a3f41f1b6af0fa4b51681a
parentccdc271a0899c2225a9cd2db1af61c1d5cf8fcad
[RISCV] Use vfirst.m to extract the first element from mask vector.

This patch uses vfirst.m to extract the first bit of mask.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D139512
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.h
llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
llvm/test/CodeGen/RISCV/rvv/constant-folding-crash.ll
llvm/test/CodeGen/RISCV/rvv/extractelt-i1.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vector-shuffle-reverse.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-extract-i1.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-masked-gather.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-masked-scatter.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vreductions-mask.ll