[PATCH] [SLPVectorizer] Reorder operands of shufflevector if it can result in a vectorized code.

Karthik Bhat kv.bhat at samsung.com
Sun Jan 11 21:23:42 PST 2015


Hi Michael,
Thanks for the clarifications. Updated the code to handle reordering for any commutative binary vector operation were it is profitable.
Post this we are able to optimally vectorize your example.
Please let me know if this looks good to you.

Thanks and Regards
Karthik Bhat


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D6677

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

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6677.18001.patch
Type: text/x-patch
Size: 19414 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150112/426d2db7/attachment.bin>


More information about the llvm-commits mailing list