This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Combine redundant Asm64 and AsmVOP3DPPBase. NFC
ClosedPublic

Authored by Joe_Nash on Jan 5 2023, 1:52 PM.

Details

Summary

Reduce duplication in the codebase by combining these fields in
VOPProfile.

Diff Detail

Event Timeline

Joe_Nash created this revision.Jan 5 2023, 1:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 5 2023, 1:52 PM
Joe_Nash requested review of this revision.Jan 5 2023, 1:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 5 2023, 1:52 PM

Further cleanups are possible, such as deleting one of these fields completely or cleaning up AsmVOP3OpSel, but I'd prefer to do it incrementally.

rampitec added inline comments.Jan 5 2023, 2:53 PM
llvm/lib/Target/AMDGPU/SIInstrInfo.td
2565–2575

Looks like you can remove getAsm64 now (and modify comment mentioning it at getAsm32).

Joe_Nash updated this revision to Diff 486857.Jan 6 2023, 6:43 AM

removed getAsm64

Joe_Nash marked an inline comment as done.Jan 6 2023, 6:43 AM
Joe_Nash added inline comments.
llvm/lib/Target/AMDGPU/SIInstrInfo.td
2565–2575

You're right, thanks.

This revision is now accepted and ready to land.Jan 6 2023, 10:19 AM
This revision was automatically updated to reflect the committed changes.
Joe_Nash marked an inline comment as done.