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.
private:
// Convenient shortcuts.
using PQueue = std::priority_queue<std::pair<unsigned, unsigned>>;
- using SmallLISet = SmallPtrSet<const LiveInterval *, 4>;
+ using SmallLISet = SmallSetVector<const LiveInterval *, 4>;
// We need to track all tentative recolorings so we can roll back any
// successful and unsuccessful recoloring attempts.