[llvm] [LoopVectorize] Enable vectorisation of early exit loops with live-outs (PR #120567)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 02:59:09 PST 2025


david-arm wrote:

> Just double checking, looking at the latest version it is effectively doing an extract of the last active lane, right?

Hi @fhahn, no it extracts the first active lane by counting the number of trailing zeroes in the mask that triggered the exit. So it's calculating the element corresponding to the first true value in the mask. If it was extracting the last active lane then it would be VF - number of leading zeroes.

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


More information about the llvm-commits mailing list