[llvm] [LV] Add support for widening loads/stores to a VF multiple (PR #217670)

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 05:01:21 PDT 2026


MacDue wrote:

> There should never be multiple predicate phis when tail folding because for correctness reasons we canonicalised to a single big predicate to cover the whole loop. Multiple extracts yes, multiple phis no.

That's not what we canonicalised to. Take a look at https://github.com/llvm/llvm-project/blob/main/llvm/test/Transforms/LoopVectorize/AArch64/sve-wide-lane-mask.ll, we make the wide mask outside the loop, then create UF phis for each extracted sub-mask.

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


More information about the llvm-commits mailing list