[PATCH] Improve Cost model for SLPVectorizer when we have a vector division by power of 2

Karthik Bhat kv.bhat at samsung.com
Thu Aug 21 01:45:40 PDT 2014


Hi Hal,Sanjay,
Updated the patch as per review comments. The modifcations done are -
1) Add feature bit as per review comments to check if we have a uniform const power of 2. Currently only handling uniform constant power of 2. Will check more on non uniform const with all power of 2 and come up with another patch.
2) Updated Loop vectorizers cost model to handle similar situation.
3) Updated cost table comments and value in X86TargetTransformInfo.

Please let me know if this looks good to commit. Thanks for your time and valuable inputs.

Regards
Karthik Bhat

http://reviews.llvm.org/D4971

Files:
  include/llvm/Analysis/TargetTransformInfo.h
  lib/Analysis/TargetTransformInfo.cpp
  lib/CodeGen/BasicTargetTransformInfo.cpp
  lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  lib/Target/ARM/ARMTargetTransformInfo.cpp
  lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  lib/Target/X86/X86TargetTransformInfo.cpp
  lib/Transforms/Vectorize/LoopVectorize.cpp
  lib/Transforms/Vectorize/SLPVectorizer.cpp
  test/Transforms/LoopVectorize/X86/powof2div.ll
  test/Transforms/SLPVectorizer/X86/powof2div.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4971.12748.patch
Type: text/x-patch
Size: 24033 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140821/969ca206/attachment.bin>


More information about the llvm-commits mailing list