Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add post-mono MIR passes to make mono-reachable analysis more accurate #131650

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

saethlin
Copy link
Member

@saethlin saethlin commented Oct 13, 2024

Debug full/incr-full builds regress, as far as I can tell this is just the expense of cloning, then monomorphizing, then caching the MIR.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 13, 2024
@rust-log-analyzer

This comment has been minimized.

@rustbot rustbot added the PG-exploit-mitigations Project group: Exploit mitigations label Oct 13, 2024
@rust-log-analyzer

This comment has been minimized.

@saethlin
Copy link
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 13, 2024
@bors
Copy link
Contributor

bors commented Oct 13, 2024

⌛ Trying commit a211812 with merge b141564...

bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 13, 2024
Add post-mono MIR passes to make mono-reachable analysis more accurate

r? ghost
@bors
Copy link
Contributor

bors commented Oct 13, 2024

☀️ Try build successful - checks-actions
Build commit: b141564 (b1415647cdfcdd1b8dc5ed5f9a5aba87ade0b225)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (b141564): comparison URL.

Overall result: ❌✅ regressions and improvements - please read the text below

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

This is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

mean range count
Regressions ❌
(primary)
12.2% [0.2%, 93.7%] 163
Regressions ❌
(secondary)
6.9% [0.2%, 266.3%] 119
Improvements ✅
(primary)
-0.7% [-3.0%, -0.2%] 6
Improvements ✅
(secondary)
-11.1% [-33.8%, -0.2%] 12
All ❌✅ (primary) 11.7% [-3.0%, 93.7%] 169

Max RSS (memory usage)

Results (primary 14.5%, secondary 1.7%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
14.5% [0.7%, 56.9%] 108
Regressions ❌
(secondary)
4.5% [0.6%, 12.8%] 34
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-22.2% [-24.2%, -19.2%] 4
All ❌✅ (primary) 14.5% [0.7%, 56.9%] 108

Cycles

Results (primary 22.8%, secondary 13.8%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
23.0% [0.8%, 108.5%] 111
Regressions ❌
(secondary)
19.4% [1.0%, 223.4%] 42
Improvements ✅
(primary)
-3.0% [-3.0%, -3.0%] 1
Improvements ✅
(secondary)
-33.2% [-42.8%, -1.3%] 5
All ❌✅ (primary) 22.8% [-3.0%, 108.5%] 112

Binary size

Results (primary -0.3%, secondary -2.3%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.8% [0.0%, 2.3%] 7
Regressions ❌
(secondary)
0.1% [0.1%, 0.1%] 1
Improvements ✅
(primary)
-0.4% [-1.7%, -0.0%] 76
Improvements ✅
(secondary)
-2.4% [-25.8%, -0.0%] 65
All ❌✅ (primary) -0.3% [-1.7%, 2.3%] 83

Bootstrap: 781.427s -> 807.023s (3.28%)
Artifact size: 331.96 MiB -> 332.21 MiB (0.08%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Oct 13, 2024
@saethlin
Copy link
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 14, 2024
@bors
Copy link
Contributor

bors commented Oct 14, 2024

⌛ Trying commit 6f6737a with merge 9233d9f...

bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 14, 2024
Add post-mono MIR passes to make mono-reachable analysis more accurate

r? ghost
@bors
Copy link
Contributor

bors commented Oct 14, 2024

☀️ Try build successful - checks-actions
Build commit: 9233d9f (9233d9f83ca672be3b2cfa697806fdb7c8970490)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (9233d9f): comparison URL.

Overall result: ❌✅ regressions and improvements - please read the text below

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

This is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

mean range count
Regressions ❌
(primary)
7.6% [0.1%, 59.9%] 151
Regressions ❌
(secondary)
2.9% [0.2%, 18.7%] 107
Improvements ✅
(primary)
-3.0% [-3.0%, -3.0%] 1
Improvements ✅
(secondary)
-6.6% [-64.0%, -0.3%] 11
All ❌✅ (primary) 7.5% [-3.0%, 59.9%] 152

Max RSS (memory usage)

Results (primary 11.3%, secondary 2.4%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
12.9% [1.3%, 52.1%] 93
Regressions ❌
(secondary)
3.6% [2.2%, 5.9%] 10
Improvements ✅
(primary)
-2.7% [-4.3%, -0.8%] 10
Improvements ✅
(secondary)
-3.4% [-3.5%, -3.4%] 2
All ❌✅ (primary) 11.3% [-4.3%, 52.1%] 103

Cycles

Results (primary 10.6%, secondary 3.2%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
10.7% [1.0%, 50.1%] 94
Regressions ❌
(secondary)
5.4% [1.7%, 18.4%] 37
Improvements ✅
(primary)
-3.1% [-3.1%, -3.1%] 1
Improvements ✅
(secondary)
-17.2% [-62.3%, -1.6%] 4
All ❌✅ (primary) 10.6% [-3.1%, 50.1%] 95

Binary size

Results (primary -0.1%, secondary -0.3%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.7% [0.0%, 2.4%] 9
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.2% [-0.8%, -0.0%] 69
Improvements ✅
(secondary)
-0.3% [-0.8%, -0.0%] 51
All ❌✅ (primary) -0.1% [-0.8%, 2.4%] 78

Bootstrap: 782.104s -> 806.252s (3.09%)
Artifact size: 332.57 MiB -> 332.81 MiB (0.07%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 14, 2024
@saethlin
Copy link
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 24, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 24, 2024
Add post-mono MIR passes to make mono-reachable analysis more accurate

As of rust-lang#131650 (comment) I believe most of the incr overhead comes from re-computing, re-encoding, and loading a lot more MIR when all we're actually doing is traversing through it. I think that can be addressed by caching a query that looks up the mentioned/used items for an Instance.

I think the full-build regressions are pretty much just the expense of cloning, then monomorphizing, then caching the MIR.
@bors
Copy link
Contributor

bors commented Oct 24, 2024

⌛ Trying commit 4ae3542 with merge 174810c...

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Nov 21, 2024
@bors
Copy link
Contributor

bors commented Nov 21, 2024

⌛ Trying commit 456b404 with merge b6292bc...

bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 21, 2024
Add post-mono MIR passes to make mono-reachable analysis more accurate

Debug full/incr-full builds regress, as far as I can tell this is just the expense of cloning, then monomorphizing, then caching the MIR.
@bors
Copy link
Contributor

bors commented Nov 21, 2024

☀️ Try build successful - checks-actions
Build commit: b6292bc (b6292bc3cc14b574308a505faf58cfe3fdae0ed3)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (b6292bc): comparison URL.

Overall result: ❌✅ regressions and improvements - please read the text below

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

This is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

mean range count
Regressions ❌
(primary)
0.8% [0.1%, 2.8%] 109
Regressions ❌
(secondary)
1.0% [0.2%, 19.3%] 65
Improvements ✅
(primary)
-0.8% [-0.9%, -0.8%] 2
Improvements ✅
(secondary)
-0.5% [-1.4%, -0.3%] 7
All ❌✅ (primary) 0.7% [-0.9%, 2.8%] 111

Max RSS (memory usage)

Results (primary 9.2%, secondary 2.5%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
9.6% [0.9%, 29.9%] 51
Regressions ❌
(secondary)
3.3% [2.0%, 5.3%] 7
Improvements ✅
(primary)
-1.5% [-1.5%, -1.5%] 2
Improvements ✅
(secondary)
-2.8% [-2.8%, -2.8%] 1
All ❌✅ (primary) 9.2% [-1.5%, 29.9%] 53

Cycles

Results (primary 1.6%, secondary 3.1%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
1.8% [0.8%, 3.4%] 23
Regressions ❌
(secondary)
3.5% [1.6%, 19.3%] 13
Improvements ✅
(primary)
-1.2% [-1.2%, -1.2%] 1
Improvements ✅
(secondary)
-1.7% [-1.7%, -1.7%] 1
All ❌✅ (primary) 1.6% [-1.2%, 3.4%] 24

Binary size

Results (primary -0.1%, secondary -0.1%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.2% [0.0%, 0.8%] 6
Regressions ❌
(secondary)
0.4% [0.4%, 0.4%] 3
Improvements ✅
(primary)
-0.1% [-1.3%, -0.0%] 54
Improvements ✅
(secondary)
-0.1% [-0.1%, -0.0%] 44
All ❌✅ (primary) -0.1% [-1.3%, 0.8%] 60

Bootstrap: 797.74s -> 806.47s (1.09%)
Artifact size: 335.91 MiB -> 335.09 MiB (-0.24%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Nov 21, 2024
@saethlin
Copy link
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Nov 22, 2024
@bors
Copy link
Contributor

bors commented Nov 22, 2024

⌛ Trying commit 2894d58 with merge 4de6de3...

bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 22, 2024
Add post-mono MIR passes to make mono-reachable analysis more accurate

Debug full/incr-full builds regress, as far as I can tell this is just the expense of cloning, then monomorphizing, then caching the MIR.
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Nov 23, 2024

💔 Test failed - checks-actions

@rust-log-analyzer
Copy link
Collaborator

The job x86_64-gnu-llvm-18 failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
#16 exporting to docker image format
#16 sending tarball 26.7s done
#16 DONE 39.7s
##[endgroup]
Setting extra environment values for docker:  --env ENABLE_GCC_CODEGEN=1 --env GCC_EXEC_PREFIX=/usr/lib/gcc/
[CI_JOB_NAME=x86_64-gnu-llvm-18]
debug: `DISABLE_CI_RUSTC_IF_INCOMPATIBLE` configured.
---
sccache: Starting the server...
##[group]Configure the build
configure: processing command line
configure: 
configure: build.configure-args := ['--build=x86_64-unknown-linux-gnu', '--llvm-root=/usr/lib/llvm-18', '--enable-llvm-link-shared', '--set', 'rust.randomize-layout=true', '--set', 'rust.thin-lto-import-instr-limit=10', '--enable-verbose-configure', '--enable-sccache', '--disable-manage-submodules', '--enable-locked-deps', '--enable-cargo-native-static', '--set', 'rust.codegen-units-std=1', '--set', 'dist.compression-profile=balanced', '--dist-compression-formats=xz', '--set', 'rust.lld=false', '--disable-dist-src', '--release-channel=nightly', '--enable-debug-assertions', '--enable-overflow-checks', '--enable-llvm-assertions', '--set', 'rust.verify-llvm-ir', '--set', 'rust.codegen-backends=llvm,cranelift,gcc', '--set', 'llvm.static-libstdcpp', '--enable-new-symbol-mangling']
configure: target.x86_64-unknown-linux-gnu.llvm-config := /usr/lib/llvm-18/bin/llvm-config
configure: llvm.link-shared     := True
configure: rust.randomize-layout := True
configure: rust.thin-lto-import-instr-limit := 10
---
.........

failures:

---- [mir-opt] tests/mir-opt/building/while_storage.rs stdout ----
thread '[mir-opt] tests/mir-opt/building/while_storage.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/building/while_storage/while_storage.while_loop.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/building/while_storage`

---- [mir-opt] tests/mir-opt/const_prop/return_place.rs stdout ----
thread '[mir-opt] tests/mir-opt/const_prop/return_place.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/const_prop/return_place.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/const_prop/return_place/return_place.add.PreCodegen.before.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/const_prop/return_place`
---- [mir-opt] tests/mir-opt/inline/unwrap_unchecked.rs stdout ----
thread '[mir-opt] tests/mir-opt/inline/unwrap_unchecked.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/inline/unwrap_unchecked.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/inline/unwrap_unchecked/unwrap_unchecked.unwrap_unchecked.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/inline/unwrap_unchecked`
---- [mir-opt] tests/mir-opt/inline/unchecked_shifts.rs stdout ----
thread '[mir-opt] tests/mir-opt/inline/unchecked_shifts.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/inline/unchecked_shifts.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/inline/unchecked_shifts/unchecked_shifts.unchecked_shl_unsigned_smaller.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/inline/unchecked_shifts`
---- [mir-opt] tests/mir-opt/pre-codegen/checked_ops.rs stdout ----
thread '[mir-opt] tests/mir-opt/pre-codegen/checked_ops.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/pre-codegen/checked_ops.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/checked_ops/checked_ops.checked_shl.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/checked_ops`
---- [mir-opt] tests/mir-opt/pre-codegen/derived_ord.rs stdout ----
thread '[mir-opt] tests/mir-opt/pre-codegen/derived_ord.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/pre-codegen/derived_ord.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/derived_ord/derived_ord.{impl#0}-partial_cmp.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/derived_ord`
---- [mir-opt] tests/mir-opt/pre-codegen/duplicate_switch_targets.rs stdout ----
thread '[mir-opt] tests/mir-opt/pre-codegen/duplicate_switch_targets.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/pre-codegen/duplicate_switch_targets.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/duplicate_switch_targets/duplicate_switch_targets.ub_if_b.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/duplicate_switch_targets`
---- [mir-opt] tests/mir-opt/pre-codegen/chained_comparison.rs stdout ----
thread '[mir-opt] tests/mir-opt/pre-codegen/chained_comparison.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/pre-codegen/chained_comparison.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/chained_comparison/chained_comparison.naive.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/chained_comparison`
---- [mir-opt] tests/mir-opt/pre-codegen/clone_as_copy.rs stdout ----
thread '[mir-opt] tests/mir-opt/pre-codegen/clone_as_copy.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/pre-codegen/clone_as_copy.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/clone_as_copy/clone_as_copy.clone_as_copy.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/clone_as_copy`
---- [mir-opt] tests/mir-opt/pre-codegen/matches_macro.rs stdout ----
thread '[mir-opt] tests/mir-opt/pre-codegen/matches_macro.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/pre-codegen/matches_macro.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/matches_macro/matches_macro.issue_77355_opt.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/matches_macro`
---- [mir-opt] tests/mir-opt/pre-codegen/loops.rs stdout ----
50     bb1: {
51         StorageLive(_13);
52         _5 = &mut _4;
52         _5 = &mut _4;
-         StorageLive(_11);
54         StorageLive(_10);
55         StorageLive(_6);
56         _6 = &(_4.0: usize);
70         StorageDead(_7);
71         StorageDead(_6);
72         StorageDead(_10);
-         StorageDead(_11);
---
89         StorageDead(_12);
90         _13 = Option::<usize>::Some(copy _11);
91         StorageDead(_10);
-         StorageDead(_11);
-         _14 = copy ((_13 as Some).0: usize);
-         _15 = opaque::<usize>(move _14) -> [return: bb5, unwind continue];
+         _14 = copy _11;
+         _15 = opaque::<usize>(copy _11) -> [return: bb5, unwind continue];
96 
97     bb5: {

thread '[mir-opt] tests/mir-opt/pre-codegen/loops.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:93:21:
thread '[mir-opt] tests/mir-opt/pre-codegen/loops.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:93:21:
Actual MIR output differs from expected MIR output /checkout/tests/mir-opt/pre-codegen/loops.int_range.PreCodegen.after.mir
---- [mir-opt] tests/mir-opt/pre-codegen/vec_deref.rs stdout ----
thread '[mir-opt] tests/mir-opt/pre-codegen/vec_deref.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/pre-codegen/vec_deref.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/vec_deref/vec_deref.vec_deref_to_slice.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/vec_deref`
---- [mir-opt] tests/mir-opt/pre-codegen/optimizes_into_variable.rs stdout ----
thread '[mir-opt] tests/mir-opt/pre-codegen/optimizes_into_variable.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/pre-codegen/optimizes_into_variable.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/optimizes_into_variable/optimizes_into_variable.main.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/optimizes_into_variable`
---- [mir-opt] tests/mir-opt/pre-codegen/no_inlined_clone.rs stdout ----
thread '[mir-opt] tests/mir-opt/pre-codegen/no_inlined_clone.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/pre-codegen/no_inlined_clone.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/no_inlined_clone/no_inlined_clone.{impl#0}-clone.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/no_inlined_clone`
---- [mir-opt] tests/mir-opt/pre-codegen/range_iter.rs stdout ----
thread '[mir-opt] tests/mir-opt/pre-codegen/range_iter.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/pre-codegen/range_iter.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/range_iter/range_iter.forward_loop.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/range_iter`
---- [mir-opt] tests/mir-opt/pre-codegen/spans.rs stdout ----
thread '[mir-opt] tests/mir-opt/pre-codegen/spans.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/pre-codegen/spans.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/spans/spans.outer.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/spans`
---- [mir-opt] tests/mir-opt/remove_never_const.rs stdout ----
thread '[mir-opt] tests/mir-opt/remove_never_const.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/remove_never_const.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/remove_never_const/remove_never_const.no_codegen.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/remove_never_const`
---- [mir-opt] tests/mir-opt/pre-codegen/simple_option_map.rs stdout ----
thread '[mir-opt] tests/mir-opt/pre-codegen/simple_option_map.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/pre-codegen/simple_option_map.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/simple_option_map/simple_option_map.ezmap.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/simple_option_map`
---- [mir-opt] tests/mir-opt/pre-codegen/slice_index.rs stdout ----
thread '[mir-opt] tests/mir-opt/pre-codegen/slice_index.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/pre-codegen/slice_index.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/slice_index/slice_index.slice_get_mut_usize.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/slice_index`
---- [mir-opt] tests/mir-opt/pre-codegen/try_identity.rs stdout ----
thread '[mir-opt] tests/mir-opt/pre-codegen/try_identity.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/pre-codegen/try_identity.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/try_identity/try_identity.new.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/pre-codegen/try_identity`
---- [mir-opt] tests/mir-opt/remove_zsts.rs stdout ----
thread '[mir-opt] tests/mir-opt/remove_zsts.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/remove_zsts.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/remove_zsts/remove_zsts.get_union.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/remove_zsts`
---- [mir-opt] tests/mir-opt/tls_access.rs stdout ----
thread '[mir-opt] tests/mir-opt/tls_access.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
thread '[mir-opt] tests/mir-opt/tls_access.rs' panicked at src/tools/compiletest/src/runtest/mir_opt.rs:72:21:
Output file `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/tls_access/tls_access.main.PreCodegen.after.mir` from test does not exist, available files are in `/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt/tls_access`

failures:
    [mir-opt] tests/mir-opt/building/while_storage.rs
    [mir-opt] tests/mir-opt/const_prop/return_place.rs

@saethlin
Copy link
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@saethlin
Copy link
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Nov 23, 2024

⌛ Trying commit 3647120 with merge 4797466...

bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 23, 2024
Add post-mono MIR passes to make mono-reachable analysis more accurate

Debug full/incr-full builds regress, as far as I can tell this is just the expense of cloning, then monomorphizing, then caching the MIR.
@bors
Copy link
Contributor

bors commented Nov 23, 2024

☀️ Try build successful - checks-actions
Build commit: 4797466 (4797466eec57731acdcc6f62db4a17b66008be8c)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (4797466): comparison URL.

Overall result: ❌✅ regressions and improvements - please read the text below

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

This is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

mean range count
Regressions ❌
(primary)
0.7% [0.2%, 2.4%] 53
Regressions ❌
(secondary)
1.0% [0.2%, 19.2%] 53
Improvements ✅
(primary)
-0.5% [-1.0%, -0.2%] 19
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.4% [-1.0%, 2.4%] 72

Max RSS (memory usage)

Results (primary 9.5%, secondary 1.6%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
10.0% [1.0%, 25.2%] 46
Regressions ❌
(secondary)
3.6% [1.4%, 5.6%] 6
Improvements ✅
(primary)
-1.8% [-1.8%, -1.8%] 2
Improvements ✅
(secondary)
-4.2% [-5.4%, -3.1%] 2
All ❌✅ (primary) 9.5% [-1.8%, 25.2%] 48

Cycles

Results (primary 1.5%, secondary 3.7%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
1.7% [0.9%, 2.9%] 16
Regressions ❌
(secondary)
5.1% [1.4%, 18.2%] 5
Improvements ✅
(primary)
-1.1% [-1.1%, -1.1%] 1
Improvements ✅
(secondary)
-3.7% [-3.7%, -3.7%] 1
All ❌✅ (primary) 1.5% [-1.1%, 2.9%] 17

Binary size

Results (primary -0.2%, secondary -0.1%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.2% [0.0%, 0.4%] 7
Regressions ❌
(secondary)
0.4% [0.4%, 0.4%] 3
Improvements ✅
(primary)
-0.2% [-2.8%, -0.0%] 60
Improvements ✅
(secondary)
-0.1% [-0.2%, -0.0%] 46
All ❌✅ (primary) -0.2% [-2.8%, 0.4%] 67

Bootstrap: 794.975s -> 802.267s (0.92%)
Artifact size: 336.16 MiB -> 336.04 MiB (-0.04%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf-regression Performance regression. PG-exploit-mitigations Project group: Exploit mitigations S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants