This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix lowering of S_MOV_{B32,B64}_term
ClosedPublic

Authored by critson on Oct 30 2020, 3:32 AM.

Details

Summary

If the source of S_MOV_{B32,B64}_term is an immediate then it
cannot be lowered to a COPY.

Diff Detail

Event Timeline

critson created this revision.Oct 30 2020, 3:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 30 2020, 3:32 AM
critson requested review of this revision.Oct 30 2020, 3:32 AM
arsenm added inline comments.Oct 30 2020, 6:54 AM
llvm/lib/Target/AMDGPU/SIOptimizeExecMasking.cpp
183–189

!isReg would be more accurate

arsenm requested changes to this revision.Nov 2 2020, 9:16 AM

Should invert condition and add a check with something more exotic like a global address

This revision now requires changes to proceed.Nov 2 2020, 9:16 AM
critson updated this revision to Diff 303698.Nov 8 2020, 12:59 AM
  • Invert condition.
  • Add tests against a symbol.
arsenm accepted this revision.Nov 9 2020, 10:58 AM
This revision is now accepted and ready to land.Nov 9 2020, 10:58 AM
This revision was landed with ongoing or failed builds.Nov 9 2020, 7:35 PM
This revision was automatically updated to reflect the committed changes.