[clang] [llvm] [RISCV] Update Zvzip support to v0.2 (PR #210603)

Boyao Wang via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 20 03:41:10 PDT 2026


================
@@ -6847,7 +6833,8 @@ SDValue RISCVTargetLowering::lowerVECTOR_SHUFFLE(SDValue Op,
 
     // Prefer vzip if available.
     // TODO: Extend to matching vzip if EvenSrc and OddSrc allow.
-    if (Subtarget.hasStdExtZvzip() && isLegalVTForZvzipOperand(VT, Subtarget))
+    if (Subtarget.hasStdExtZvzip() &&
+        isLegalVTForZvzipInterleavedOperand(VT, Subtarget))
----------------
BoyaoWang430 wrote:

This checks the doubled type, but the calls below lower the original V1/V2. Please validate the actual operand type.

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


More information about the cfe-commits mailing list