This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Drop Reg32 and use regular AsmName
ClosedPublic

Authored by rampitec on Jul 18 2019, 2:56 PM.

Details

Summary

This allows to reduce generated AMDGPUGenAsmWriter.inc by ~100Kb.

Diff Detail

Repository
rL LLVM

Event Timeline

rampitec created this revision.Jul 18 2019, 2:56 PM
arsenm accepted this revision.Jul 18 2019, 3:00 PM

LGTM

lib/Target/AMDGPU/SIRegisterInfo.td
58 ↗(On Diff #210685)

I noticed this is giving extra names to m0

This revision is now accepted and ready to land.Jul 18 2019, 3:00 PM
rampitec marked an inline comment as done.Jul 18 2019, 3:11 PM
rampitec added inline comments.
lib/Target/AMDGPU/SIRegisterInfo.td
58 ↗(On Diff #210685)

Right, all registers in a class must support all altNameIndexes supported by that class. Thus special registers need to have names at every slot.

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2019, 3:21 PM