[PATCH] D59956: [SLP] Add support for swapping icmp/fcmp predicates to permit vectorization

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 28 12:17:30 PDT 2019


RKSimon created this revision.
RKSimon added reviewers: ABataev, dtemirbulatov.
Herald added a project: LLVM.

We should be able to match elements with the swapped predicate as well - as long as we commute the source operands.


Repository:
  rL LLVM

https://reviews.llvm.org/D59956

Files:
  lib/Transforms/Vectorize/SLPVectorizer.cpp
  test/Transforms/SLPVectorizer/X86/cmp_commute.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59956.192699.patch
Type: text/x-patch
Size: 8064 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190328/1165664c/attachment.bin>


More information about the llvm-commits mailing list