This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Set more mov flags on V_ACCVGPR_{READ|WRITE}_B32
ClosedPublic

Authored by arsenm on Jul 1 2020, 2:32 PM.

Details

Reviewers
rampitec
Summary

This fixes extra copies when materializing constants in AGPRs. This
made it a lot harder to trigger the spilling in spill-agpr.ll

Diff Detail

Event Timeline

arsenm created this revision.Jul 1 2020, 2:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 1 2020, 2:32 PM
rampitec accepted this revision.Jul 1 2020, 3:14 PM

I would not be so sure it is trivially materializable and cheap as move in a general case given the limitation on the sources and 3 cycle hazard after it. But let's pretend it is.

This revision is now accepted and ready to land.Jul 1 2020, 3:14 PM
arsenm closed this revision.Jul 1 2020, 4:00 PM

I would not be so sure it is trivially materializable and cheap as move in a general case given the limitation on the sources and 3 cycle hazard after it. But let's pretend it is.

It is itself, the hazards are a different question. The source constraints also don't matter

d2e74fad20bf8cf66ff20a43fe2934d71e046528