[llvm] [LV][RISCV] Add explicit LMUL controls via computeFeasibleMaxVF (PR #193091)

Shih-Po Hung via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 27 23:56:21 PDT 2026


arcbbb wrote:

> However, given the API documentation, I'm unclear whether this should return LMUL × RealMinVLen instead?

Never mind, I figured it out. TypeSize with `Scalable = true` means the `Quantity` represents the coefficient of vscale, so the actual runtime bit width is `Quantity × vscale`.
The current implementation is correct and properly covers the `riscv-vector-primary-lmul-max` case.

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


More information about the llvm-commits mailing list