Repository navigation
Conversation
|
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
|
rustbot has assigned @JonathanBrouwer. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This section of PR descriptions is synthesized by LLM assistants, and is uniquely foolish to add in this repo because we, you know, have CI that runs all the tests. Please write PR descriptions by hand. |
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Fix MIR inliner cycle detection for mutual recursion
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (cda6272): comparison URL. Overall result: ❌✅ regressions and improvements - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -2.9%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesThis perf run didn't have relevant results for this metric. Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 502.551s -> 496.731s (-1.16%) |
|
@rustbot ready |
|
r? mir-opt |
|
☔ The latest upstream changes (presumably #166456) made this pull request unmergeable. Please resolve the merge conflicts by rebasing. |
Fixes #161234
The problem is that the
falsevalue conflates two states:I fixed this by separating the states. Proven reachability to the root is now stored separately. For
callees currently being processed, we store back-edges. Once it becomes clear that a path to the root exists, we propagate the result backwards. This requires additional memory to store the graph's back-edges.I added a regression test to verify the traversal order.
The algorithm's complexity is O(V+E).
I would like to see the results of the compiler performance testing.
I used an LLM as a reviewer; the implementation and testing were done manually.