[PATCH] Adjust the cost of vectorized SHL/SRL/SRA

Wei Mi wmi at google.com
Tue Jun 2 10:10:56 PDT 2015


> Please can you add uniform non-constant tests to:

>  test/Analysis/CostModel/X86/testshiftashr.ll

>  test/Analysis/CostModel/X86/testshiftlshr.ll

>  test/Analysis/CostModel/X86/testshiftshl.ll


Thanks for the review. I add uniform variant tests in those files. Another change in this patch is to try to set operand to be UniformValue in CostModelAnalysis pass.


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D9923

Files:
  lib/Analysis/CostModel.cpp
  lib/Target/X86/X86TargetTransformInfo.cpp
  lib/Transforms/Vectorize/LoopVectorize.cpp
  test/Analysis/CostModel/X86/testshiftashr.ll
  test/Analysis/CostModel/X86/testshiftlshr.ll
  test/Analysis/CostModel/X86/testshiftshl.ll
  test/Transforms/LoopVectorize/uniform-shift.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9923.26983.patch
Type: text/x-patch
Size: 11469 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150602/6e6ef588/attachment.bin>


More information about the llvm-commits mailing list