This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix hazard with v_accvgpr_write_b32 and inline asm VGPR defs
ClosedPublic

Authored by arsenm on Oct 11 2022, 11:22 AM.

Details

Reviewers
rampitec
kerbowa
Group Reviewers
Restricted Project
Summary

If inline asm has a VGPR def, it must have come from a VGPR write
somewhere inside the asm. This should be further extended to all
read after write hazards.

Diff Detail

Event Timeline

arsenm created this revision.Oct 11 2022, 11:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2022, 11:22 AM
arsenm requested review of this revision.Oct 11 2022, 11:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2022, 11:22 AM
Herald added a subscriber: wdng. · View Herald Transcript
rampitec accepted this revision.Oct 11 2022, 12:01 PM

LGTM, but it solves the problem just partially. One specific problem in one specific place. In general we cannot handle inline asm here.

This revision is now accepted and ready to land.Oct 11 2022, 12:01 PM

LGTM, but it solves the problem just partially. One specific problem in one specific place. In general we cannot handle inline asm here.

I'm working on a more general patch for this pattern but it seems we're missing a bit of test coverage for some of these hazards