[all-commits] [llvm/llvm-project] d7575b: [RISCV] coalesce between VSETVLI and SF_VSETTNT (#...

Piyou Chen via All-commits all-commits at lists.llvm.org
Tue Aug 4 16:00:04 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d7575bc5e72bf15dabb9f5782a629e211bf4914a
      https://github.com/llvm/llvm-project/commit/d7575bc5e72bf15dabb9f5782a629e211bf4914a
  Author: Piyou Chen <piyou.chen at sifive.com>
  Date:   2026-08-04 (Tue, 04 Aug 2026)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
    A llvm/test/CodeGen/RISCV/rvv/xsfmm-vsetvl-removal.ll

  Log Message:
  -----------
  [RISCV] coalesce between VSETVLI and SF_VSETTNT (#203438)

When twiden != 0, LMUL, tail policy, and mask policy from the user are
ignored. The tail policy and mask policy are always treated as agnostic.
The normal RVV instruction will ignore the twiden parameter. This
observation could allow the RVV instruction and xsfmm instruction to
share the same configuration instruction.

We need to make sure the AVL, SEW, and AltFmt is same between VSETVL and
VSETVLTN.

---------

Co-authored-by: Luke Lau <luke_lau at icloud.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list