[PATCH] D108136: [LoopVectorize] Permit vectorisation of more select(cmp(), X, Y) reduction patterns

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 11 11:26:58 PDT 2021


dmgreen added a comment.

I have been looking at a similar area of the code recently for something unrelated. My first thought was that these are funny reductions, only reducing 2 values into 1. As in https://godbolt.org/z/531E7cPxY?

Do you know how common this comes up, and if the loop in question will usually have a large enough iteration count to warrant the overheads of vectorization? I guess that's hard to say in general.

Can you upload with full context


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108136/new/

https://reviews.llvm.org/D108136



More information about the llvm-commits mailing list