[PATCH] Vectorize math intrinsic calls in SLPVectorizer

Karthik Bhat kv.bhat at samsung.com
Tue Apr 29 23:13:01 PDT 2014


Hi nadav, aschwaighofer, hfinkel, rsilvera,

Part 2/2 of [ Vectorize intrinsic math function calls in SLPVectorizer ]

Splitting patch in http://reviews.llvm.org/D3535

Now that we have getIntrinsicIDForCall in VectorUtil. Use the same logic as in LoopVectorize in SLPVectorizer and use getIntrinsicIDForCall to decide if the CallInstr can be classified as an intrinsic call. 
If yes calculate the appropriate cost in SLPVectorize to decide if to vectorize or not.

Thanks
Karthik Bhat

http://reviews.llvm.org/D3560

Files:
  lib/Transforms/Vectorize/SLPVectorizer.cpp
  test/Transforms/SLPVectorizer/X86/call.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3560.8957.patch
Type: text/x-patch
Size: 12605 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140430/efc28081/attachment.bin>


More information about the llvm-commits mailing list