This is an archive of the discontinued LLVM Phabricator instance.

[LegalizeDAG] Share Vector/Scalar CTTZ Expansion
ClosedPublic

Authored by RKSimon on Oct 20 2018, 1:45 PM.

Details

Summary

As suggested on 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 D53258 accordingly.

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Oct 20 2018, 1:45 PM
This revision is now accepted and ready to land.Oct 22 2018, 11:26 AM
This revision was automatically updated to reflect the committed changes.