This is an archive of the discontinued LLVM Phabricator instance.

RegAllocGreedy: Fix nondeterminism in tryLastChanceRecoloring
ClosedPublic

Authored by arsenm on Jul 27 2022, 10:31 AM.

Details

Summary

tryLastChanceRecoloring iterates over the set of LiveInterval pointers
and used that to seed the recoloring stack, which was
nondeterministic. Fixes a future test failing about 20% of the time.

This just takes the order the interfering vreg was encountered. Not
sure if we should try to order this more intelligently.

Diff Detail

Event Timeline

arsenm created this revision.Jul 27 2022, 10:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2022, 10:31 AM
arsenm requested review of this revision.Jul 27 2022, 10:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2022, 10:31 AM
Herald added a subscriber: wdng. · View Herald Transcript
qcolombet accepted this revision.Jul 27 2022, 11:13 AM

Good catch!

This revision is now accepted and ready to land.Jul 27 2022, 11:13 AM