preames wrote: > LGTM. Should we be canonicalising this for `Intrinsic::riscv_vlse` and `Intrinsic::riscv_vlse_mask` too? Yes. However, I'm focused on generic IR codegen and don't care too much about intrinsic usage. https://github.com/llvm/llvm-project/pull/65674