[RISCV] Use maskedoff to decide mask policy for masked compare and vmsbf/vmsif/vmsof.
authorZakk Chen <zakk.chen@sifive.com>
Wed, 30 Mar 2022 00:28:28 +0000 (17:28 -0700)
committerZakk Chen <zakk.chen@sifive.com>
Wed, 30 Mar 2022 01:05:33 +0000 (18:05 -0700)
commitb5783307543d6379d267f8a90c56a75f9e456395
tree080b52a60fb4485c31be0c9cfa3f60d48a29f26f
parent10b2760da0fd90af19c6a2619734092833728877
[RISCV] Use maskedoff to decide mask policy for masked compare and vmsbf/vmsif/vmsof.

masked compare and vmsbf/vmsif/vmsof are always tail agnostic, we could
check maskedoff value to decide mask policy rather than have a addtional
policy operand.

Reviewed By: craig.topper, arcbbb

Differential Revision: https://reviews.llvm.org/D122456
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
llvm/test/CodeGen/RISCV/rvv/masked-tama.ll