This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][NFC] More precise predicates on GFX9 f16 insts
ClosedPublic

Authored by Joe_Nash on Jan 31 2023, 9:14 AM.

Details

Summary

Removes redundant Has16BitInsts and allows for future use
of OtherPredicates on V_DIV_FIXUP_F16_gfx9 and V_FMA_F16_gfx9

Diff Detail

Event Timeline

Joe_Nash created this revision.Jan 31 2023, 9:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 31 2023, 9:14 AM
Joe_Nash requested review of this revision.Jan 31 2023, 9:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 31 2023, 9:14 AM
foad added inline comments.Jan 31 2023, 9:33 AM
llvm/lib/Target/AMDGPU/VOP3Instructions.td
306

Can you make the same change here?

Joe_Nash added inline comments.Jan 31 2023, 10:16 AM
llvm/lib/Target/AMDGPU/VOP3Instructions.td
306

No. We explicitly want to override predicates on the pseudo instruction but not the real, so assembly of V_DIV_FIXUP_LEGACY_F16_gfx9 works. SubtargetPredicate would be copied to the real.

foad accepted this revision.Feb 1 2023, 2:40 AM

LGTM.

llvm/lib/Target/AMDGPU/VOP3Instructions.td
306

OK. I still think this can be cleaned up a little, but it needn't hold up your patch.

This revision is now accepted and ready to land.Feb 1 2023, 2:40 AM
This revision was automatically updated to reflect the committed changes.