[PATCH] D91093: [X86 and PPC] Tune SelectionDAG CTPOP emulation via TLI hook

David Zarzycki via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 9 10:55:06 PST 2020


davezarzycki created this revision.
davezarzycki added reviewers: craig.topper, spatel, RKSimon.
davezarzycki added a project: LLVM.
Herald added a subscriber: nemanjai.
davezarzycki requested review of this revision.

When CTPOP is not legal, emulating it can be quite expensive. In D89952 <https://reviews.llvm.org/D89952>, a TLI hook was added to allow targets to tune how expensive CTPOP emulation is. This patch attempts to do basic/easy tuning. More refinement is certainly possible, especially when a legal CTPOP is available but with the "wrong" type/size.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91093

Files:
  llvm/test/CodeGen/PowerPC/vector-popcnt-128-ult-ugt.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91093.303935.patch
Type: text/x-patch
Size: 167839 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201109/7069b472/attachment-0001.bin>


More information about the llvm-commits mailing list