Files
rust/compiler/rustc_mir_transform/src
bors 9e7f72c57d Auto merge of #110477 - miguelraz:canoodling2-electric-boogaloo, r=compiler-errors
Don't allocate on SimplifyCfg/Locals/Const on every MIR pass

Hey! 👋🏾 This is a first PR attempt to see if I could speed up some rustc internals.

Thought process:

```rust
pub struct SimplifyCfg {
    label: String,
}
```
in [compiler/src/rustc_mir_transform/simplify.rs](https://github.com/rust-lang/rust/blob/7908a1d65496b88626e4b7c193c81d777005d6f3/compiler/rustc_mir_transform/src/simplify.rs#L39) fires multiple times per MIR analysis. This means that a likely string allocation is happening in each of these runs, which may add up, as they are not being  lazily allocated or cached in between the different passes.

...yes, I know that adding a global static array is probably not the future-proof solution, but I wanted to lob this now as a proof of concept to see if it's worth shaving off a few cycles and then making more robust.
2023-04-19 02:57:19 +00:00
..
2023-04-17 16:09:18 -04:00
2023-04-17 16:09:18 -04:00
2023-04-17 16:09:18 -04:00
2023-02-16 18:30:25 +01:00
2023-04-17 16:09:18 -04:00
2023-04-17 16:09:18 -04:00
2023-04-17 16:09:18 -04:00
2023-03-21 15:38:52 +00:00
2023-04-17 16:09:18 -04:00
2023-04-06 09:34:16 +01:00
2023-03-14 20:52:42 +01:00
2023-03-13 18:22:55 +00:00
2023-03-28 22:22:37 -07:00
2023-04-17 16:09:18 -04:00
2023-04-10 22:02:52 +02:00