This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Change internal tracking of wave size
ClosedPublic

Authored by arsenm on Jun 1 2020, 10:26 AM.

Details

Summary

Store the log2 wave size instead of forcing division and log2
operations when querying either.

Diff Detail

Event Timeline

arsenm created this revision.Jun 1 2020, 10:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2020, 10:26 AM
arsenm updated this revision to Diff 267662.Jun 1 2020, 10:26 AM
rampitec added inline comments.Jun 1 2020, 11:40 AM
llvm/lib/Target/AMDGPU/AMDGPUFeatures.td
31–32

Why do you need both?

arsenm updated this revision to Diff 267732.Jun 1 2020, 2:20 PM

Use tablegen shift

rampitec accepted this revision.Jun 1 2020, 2:40 PM

LGTM

This revision is now accepted and ready to land.Jun 1 2020, 2:40 PM