[llvm] [RISCV] Teach the VL Optimizer about Zvzip instructions (PR #214405)
Pengcheng Wang via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 2 00:34:27 PDT 2026
================
@@ -731,8 +731,10 @@ bool RISCVVectorPeepholeImpl::foldVMergeToMask(MachineInstr &MI) const {
else
return false;
- unsigned RVVTSFlags =
- TII->get(RISCV::getRVVMCOpcode(True.getOpcode())).TSFlags;
+ unsigned RVVOpc = RISCV::getRVVMCOpcode(True.getOpcode());
+ unsigned RVVTSFlags = TII->get(RVVOpc).TSFlags;
+ if (RVVOpc == RISCV::VZIP_VV)
+ return false;
----------------
wangpc-pp wrote:
We probably don't need it in v0.3? Let's see.
https://github.com/llvm/llvm-project/pull/214405
More information about the llvm-commits
mailing list