[PATCH] D28907: [SLP] Fix for PR30787: Failure to beneficially vectorize 'copyable' elements in integer binary ops.

Dinar Temirbulatov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 10:43:32 PST 2017


dtemirbulatov updated this revision to Diff 121932.
dtemirbulatov added a comment.

Updated this criteria for the same or alternative opcodes in the way suggested by Alexey and I tested the solution widely on different platforms and I was not able to encounter code where the same or alternative opcodes are more than 1 or 2 or the same or alternative opcode > than operations with different opcodes, except equal to one. But still the new  criteria looks better to me.


https://reviews.llvm.org/D28907

Files:
  lib/Transforms/Vectorize/SLPVectorizer.cpp
  test/Transforms/SLPVectorizer/SystemZ/pr34619.ll
  test/Transforms/SLPVectorizer/X86/vect_copyable_in_binops.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28907.121932.patch
Type: text/x-patch
Size: 66899 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171107/c14e6c52/attachment-0001.bin>


More information about the llvm-commits mailing list