This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Fix narrowScalar for G_{CTLZ|CTTZ}_ZERO_UNDEF
ClosedPublic

Authored by arsenm on Feb 7 2020, 10:09 AM.

Details

Summary

Narrow these for 64-bit VALU for AMDGPU.

Diff Detail

Event Timeline

arsenm created this revision.Feb 7 2020, 10:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 7 2020, 10:09 AM
Petar.Avramovic accepted this revision.Feb 7 2020, 10:41 AM

LGTM

llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
3998–4000

could use

auto LoCTLZ = B.buildInstr(MI.getOpcode(), {DstTy}, {UnmergeSrc.getReg(0)});

for breviary.

This revision is now accepted and ready to land.Feb 7 2020, 10:41 AM