llvm-project
40edb37b - [StackSlotColoring] Fix issue where colors for a StackID are dropped (#138140)

Commit
152 days ago
[StackSlotColoring] Fix issue where colors for a StackID are dropped (#138140) In InitializeSlots, if an interval with a non-zero StackID (A) is encountered we set All/UsedColors to a size of A + 1. If after this we process another interval with a non-zero StackID (B), where B < A, then we resize All/UsedColors to size < A + 1, and lose the BitVector associated with A. AFAIK this is a latent bug upstream, but when adding a new TargetStackID locally I hit a `NextColors[StackID] != -1 && "No more spill slots?"` assertion due to this issue.
Author
Parents
Loading