This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix image opcodes GlobalISel on gfx90a.
ClosedPublic

Authored by rampitec on May 24 2022, 11:54 AM.

Details

Summary
  • Correct flavor of an instruction was not selected.
  • GFX90A does not support TFE.

Diff Detail

Event Timeline

rampitec created this revision.May 24 2022, 11:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2022, 11:54 AM
rampitec requested review of this revision.May 24 2022, 11:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2022, 11:54 AM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm added inline comments.May 24 2022, 12:29 PM
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
1661

Probably should just return false and turn the error message into a debug print

rampitec updated this revision to Diff 431760.May 24 2022, 12:33 PM
rampitec marked an inline comment as done.
Joe_Nash accepted this revision.May 31 2022, 1:43 PM
Joe_Nash added a subscriber: Joe_Nash.

LGTM

This revision is now accepted and ready to land.May 31 2022, 1:43 PM
This revision was landed with ongoing or failed builds.May 31 2022, 2:08 PM
This revision was automatically updated to reflect the committed changes.
arsenm added inline comments.Jun 1 2022, 5:25 AM
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
1729

Same applies here? Return false instead of error

rampitec marked an inline comment as done.Jun 1 2022, 10:47 AM
rampitec added inline comments.
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
1729