[llvm] [LoopVectorize] LLVM fails to vectorise loops with multi-bool varables (PR #89226)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 2 01:26:19 PDT 2024


https://github.com/fhahn approved this pull request.

LGTM, thanks!

There's one place where we modify the matched compare for any_of reductions (https://github.com/llvm/llvm-project/blob/main/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp#L9034) which I think relies on the select being the single user. I don't think cases where this triggers are currently supported by this change, but it would probably be good to add an assert there that the modified compare has a single user.



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


More information about the llvm-commits mailing list