[PATCH] D89952: [SelectionDAG] Enable CTPOP optimization fine tuning

David Zarzycki via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 23 08:07:48 PDT 2020


davezarzycki updated this revision to Diff 300296.
davezarzycki retitled this revision from "[SelectionDAG][X86] Fine tune CTPOP optimizations" to "[SelectionDAG] Enable CTPOP optimization fine tuning".
davezarzycki edited the summary of this revision.
davezarzycki added a comment.

Hi @craig.topper and @spatel – I'd like to break this patch into two parts. This patch is the first part: the mechanism that enables targets to tune the length of "x & (x - 1)" chains used to emulate unsigned greater-than/less-than comparisons against a CTPOP result.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89952/new/

https://reviews.llvm.org/D89952

Files:
  llvm/include/llvm/CodeGen/TargetLowering.h
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/test/CodeGen/X86/vector-popcnt-128-ult-ugt.ll
  llvm/test/CodeGen/X86/vector-popcnt-256-ult-ugt.ll
  llvm/test/CodeGen/X86/vector-popcnt-512-ult-ugt.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89952.300296.patch
Type: text/x-patch
Size: 122880 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201023/fe799ebd/attachment.bin>


More information about the llvm-commits mailing list