[llvm] [RISCV] Support memcmp expansion for vectors (PR #114517)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 12 23:34:22 PDT 2025


wangpc-pp wrote:

> > > The range of supported load sizes is (XLEN, VLEN * LMUL8]
> > 
> > 
> > Is there a way for users to change this, depending on the platform users may want to expand memcmp's on larger sequences.
> 
> The number of loads is determined from the earlier `Options.MaxNumLoads = TLI->getMaxExpandSizeMemcmp(OptSize);`

Yes. And you may refer to `-max-loads-per-memcmp` option.

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


More information about the llvm-commits mailing list