[llvm] [RISCV] Mark RVV stores and segmented loads as masked pseudo (PR #123106)

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 17 12:00:24 PST 2025


================
@@ -3829,8 +3830,9 @@ bool RISCVDAGToDAGISel::doPeepholeMaskedRVV(MachineSDNode *N) {
 #endif
 
   SmallVector<SDValue, 8> Ops;
-  // Skip the passthru operand at index 0 if !UseTUPseudo and no GPR out.
-  bool ShouldSkip = !UseTUPseudo && !hasGPROut(Opc);
+  // Skip the passthru operand at index 0 if !UseTUPseudo and has the passthru
+  // operand.
+  bool ShouldSkip = !UseTUPseudo && hasPassthru(MCID);
----------------
mshockwave wrote:

Yes it works. And I agree it's cleaner in this way, thanks.

https://github.com/llvm/llvm-project/pull/123106


More information about the llvm-commits mailing list