[PATCH] D119855: [SLP]Fix vectorization of the alternate cmp instruction with swapped predicates.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 17 10:32:06 PST 2022


ABataev updated this revision to Diff 409714.
ABataev added a comment.

Added explicit check for main/alternate instructions in alternate op selection function + outlined common functionality.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119855

Files:
  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
  llvm/test/Transforms/SLPVectorizer/X86/alternate-cmp-swapped-pred.ll
  llvm/test/Transforms/SLPVectorizer/X86/cmp-as-alternate-ops.ll
  llvm/test/Transforms/SLPVectorizer/X86/reduction-logical.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119855.409714.patch
Type: text/x-patch
Size: 20865 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220217/8504ca52/attachment.bin>


More information about the llvm-commits mailing list