This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Update SlotIndexes independently of LiveIntervals
ClosedPublic

Authored by arsenm on Sep 15 2022, 1:11 PM.

Details

Reviewers
rampitec
foad
Group Reviewers
Restricted Project
Summary

Apparently StackColoring depends on SlotIndexes, but not
LiveIntervals. If regalloc fast were manually requested, LiveIntervals
would be dropped before SILowerSGPRSpills but not SlotIndexes.

SILowerSGPRSpills preserved SlotIndexes, but only through
LiveIntervals. As a result, SILowerSGPRSpills was incorrectly
reporting it preserved SlotIndexes. Start updating these directly,
instead of depending on LiveIntervals also being available.

Diff Detail

Unit TestsFailed

Event Timeline

arsenm created this revision.Sep 15 2022, 1:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 15 2022, 1:11 PM
arsenm requested review of this revision.Sep 15 2022, 1:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 15 2022, 1:11 PM
Herald added a subscriber: wdng. · View Herald Transcript
rampitec accepted this revision.Sep 15 2022, 2:30 PM
rampitec added a subscriber: rampitec.

LGTM

This revision is now accepted and ready to land.Sep 15 2022, 2:30 PM
foad accepted this revision.Sep 16 2022, 1:49 AM

Thanks!