[PATCH] D114799: [SLP]Improve vectorization of cmp instructions sequences.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 30 11:00:56 PST 2021


ABataev added inline comments.


================
Comment at: llvm/test/Transforms/SLPVectorizer/X86/reduction-logical.ll:111
+; SSE-NEXT:    [[S3:%.*]] = select i1 [[S2]], i1 [[TMP5]], i1 false
+; SSE-NEXT:    ret i1 [[S3]]
+;
----------------
RKSimon wrote:
> Any idea what happened here?
The pair of `icmp slt` gets vectorized because the cost model decided that it is profitable. We can't handle these `select`s as reduction because `icmp` instructions have different predicates.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D114799



More information about the llvm-commits mailing list