This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix illegal VGPR to SGPR copy in FP elimination
AbandonedPublic

Authored by rampitec on Oct 6 2020, 1:01 PM.

Details

Reviewers
arsenm
Summary

If a frame pointer was used in a S_MOV_B32 we were generating
V_MOV_B32 regardless.

Diff Detail

Event Timeline

rampitec created this revision.Oct 6 2020, 1:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2020, 1:01 PM
rampitec requested review of this revision.Oct 6 2020, 1:01 PM
rampitec abandoned this revision.Oct 6 2020, 5:19 PM

It needs more to make it working. We only have one offset value, so to use flat scratch we would need some pointer arithmetic on the FI and SP and then FI can occur in other SALU too.