Files
rust/compiler/rustc_mir_transform
Jonathan Brouwer 50ee4f4d26 Rollup merge of #163126 - charliermarsh:charlie/conflicts, r=oli-obk
Skip redundant storage-conflict updates during coroutine layout

## Summary

When computing coroutine storage conflicts, we currently record conflicts between every pair in the live set. This PR instead remembers the last live set whose conflicts were recorded; if the current set is a subset, we skip the matrix updates. For example, after recording `{a, b, c}`, observing `{a, b}` adds no new conflicts.

I used an LLM to profile this change, and saw a compiler CPU reduction in the following projects:

- Codex: 2.69%
- Ruff: 2.84%
- uv: 5.28%
- ty: 3.28%
2026-09-22 22:50:35 +02:00
..
2026-08-21 10:33:56 +02:00