BeMg wrote: The extra spill/reload issue may require changes to the scheduler or allocator. I'm going to address the extra VSETVL issue by modifying the VSETVL insertion pass in this patch. https://github.com/llvm/llvm-project/pull/70549