[PATCH] Vectorize intrinsic math function calls in SLPVectorizer

Karthik Bhat kv.bhat at samsung.com
Tue Apr 29 04:25:29 PDT 2014


Hi nadav, aschwaighofer, hfinkel, rsilvera,

Hi All,
Added a patch to vectorize intrinsic math functions in SLPVectorizer.
If any intrinsic math function can be replaced with llvm intrinsic function we do so after doing the relevent check and vectorize the same if vectorization turns out to be benificial.
This is quite similar to how we handle math functions in LoopVectorizer.

Could you please let me know your inputs on this patch?

Thanks
Karthik Bhat

http://reviews.llvm.org/D3535

Files:
  include/llvm/Transforms/Utils/VectorUtils.h
  lib/Transforms/Vectorize/LoopVectorize.cpp
  lib/Transforms/Vectorize/SLPVectorizer.cpp
  test/Transforms/SLPVectorizer/X86/call.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3535.8910.patch
Type: text/x-patch
Size: 22022 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140429/1a53438e/attachment.bin>


More information about the llvm-commits mailing list