[PATCH] Add support to vectorize ctlz, cttz and powi intrinsics in SLPVectorizer

Karthik Bhat kv.bhat at samsung.com
Tue May 20 11:52:33 PDT 2014


Hi nadav, hfinkel, aschwaighofer,

Hi Nadav, Arnold, Hal,
This patch adds support to recognize and vectorize llvm intrinsics  ctlz,cttz and powi. These intrinsics are different from other intrinsics handled so far in SLPVectorizer as 2nd argument of these intrinsics should be a scalar and we can vectorize these intrinsics only if the second argument is same.
Does this look good to commit?
Thanks
Karthik Bhat

http://reviews.llvm.org/D3851

Files:
  include/llvm/Transforms/Utils/VectorUtils.h
  lib/Transforms/Vectorize/SLPVectorizer.cpp
  test/Transforms/SLPVectorizer/X86/intrinsic.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3851.9638.patch
Type: text/x-patch
Size: 8439 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140520/8c6bcaa1/attachment.bin>


More information about the llvm-commits mailing list