[PATCH] D53474: [LegalizeDAG] Share Vector/Scalar CTTZ Expansion

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 20 13:46:22 PDT 2018


RKSimon created this revision.
RKSimon added reviewers: efriedma, craig.topper, spatel, t.p.northover, evandro, andreadb.

As suggested on https://reviews.llvm.org/D53258, this patch demonstrates sharing common CTTZ expansion code between VectorLegalizer and SelectionDAGLegalize by putting it in TargetLowering.

If accepted I intend to move CTLZ and (scalar) CTPOP over as well and then update https://reviews.llvm.org/D53258 accordingly.


Repository:
  rL LLVM

https://reviews.llvm.org/D53474

Files:
  include/llvm/CodeGen/TargetLowering.h
  lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
  lib/CodeGen/SelectionDAG/TargetLowering.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53474.170316.patch
Type: text/x-patch
Size: 7405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181020/dc6fd8ae/attachment.bin>


More information about the llvm-commits mailing list