rust/compiler/rustc_const_eval/src
bors 677710eaf0 Auto merge of #112638 - lqd:rpo, r=cjgillot
Switch the BB CFG cache from postorder to RPO

The `BasicBlocks` CFG cache is interesting:
- it stores a postorder, but `traversal::postorder` doesn't use it
- `traversal::reverse_postorder` does traverse the postorder cache backwards
- we do more RPO traversals than postorder traversals (around 20x on the perf.rlo benchmarks IIRC) but it's not cached
- a couple places here and there were manually reversing the non-cached postorder traversal

This PR switches the order of the cache, and makes a bit more use of it. This is a tiny win locally, but it's also for consistency and aesthetics.

r? `@ghost`
2023-06-18 12:45:41 +00:00
..
const_eval Use translatable diagnostics in rustc_const_eval 2023-06-01 14:45:18 +00:00
interpret Use 128 bits for TypeId hash 2023-06-04 08:34:48 -07:00
transform Auto merge of #112638 - lqd:rpo, r=cjgillot 2023-06-18 12:45:41 +00:00
util Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00
errors.rs fix diagnostic message 2023-06-01 14:45:19 +00:00
lib.rs Use translatable diagnostics in rustc_const_eval 2023-06-01 14:45:18 +00:00