[llvm] [RISCV][GISel] First mask argument placed in v0 according to RISCV Ve… (PR #79343)
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 24 13:01:07 PST 2024
================
@@ -48,10 +51,16 @@ struct RISCVOutgoingValueAssigner : public CallLowering::OutgoingValueAssigner {
const DataLayout &DL = MF.getDataLayout();
const RISCVSubtarget &Subtarget = MF.getSubtarget<RISCVSubtarget>();
+ std::optional<unsigned> FirstMaskArgument;
+ if (Subtarget.hasVInstructions() && !AssignedFirstMaskArg &&
+ ValVT.isVector() && ValVT.getVectorElementType() == MVT::i1) {
+ FirstMaskArgument = std::make_optional(ValNo);
----------------
michaelmaitland wrote:
updated.
https://github.com/llvm/llvm-project/pull/79343
More information about the llvm-commits
mailing list