bors 915aa06700 Auto merge of #110705 - saethlin:ignore-locals-cost, r=cjgillot
Remove the size of locals heuristic in MIR inlining

This heuristic doesn't necessarily correlate to complexity of the MIR Body. In particular, a lot of straight-line code in MIR tends to never reuse a local, even though any optimizer would effectively reuse the storage or just put everything in registers. So it doesn't even necessarily make sense that this would be a stack size heuristic.

So... what happens if we just delete the heuristic? The benchmark suite improves significantly. Less heuristics better?

r? `@cjgillot`
2023-04-23 15:41:45 +00:00
..
2023-04-06 09:34:17 +01:00
2023-04-06 09:34:17 +01:00
2023-04-06 09:34:17 +01:00
2023-04-06 09:34:17 +01:00
2023-04-06 10:08:07 +01:00
2023-04-06 10:08:07 +01:00
2023-04-06 09:34:17 +01:00
2023-04-05 15:59:29 +00:00
2023-04-06 10:08:07 +01:00
2023-04-06 09:34:17 +01:00
2023-04-06 09:34:17 +01:00
2023-04-06 10:08:07 +01:00