You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[AMDGPU] Handle empty-except-for-DI regions in PreRARematerialize (#524)
The existing check for this case only comes after a derefence of what
can be an iterator sentinel (leading to an assert).
This may not be purely NFC in that it also avoids queuing the
effectively-empty region for rescheduling, but AFAICT this should be
purely an optimization.
Testing this seems difficult, as the high-level scheduler avoids
scheduling these "empty" regions. This means a reproducer has to depend
on behavior of the scheduler passes before PreRARematStage in order to
craft a region which triggers the bug.
Since this is a release blocker I am posting a PR now, as both Shore
Shen and I have manually verified that this resolves the particular
crash from
[SWDEV-564142](https://ontrack-internal.amd.com/browse/SWDEV-564142) but
I am still working on making a reasonable test.
(cherry picked from commit 004cfea)
0 commit comments