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

[perf experiment] Disable Inline #111782

Closed
wants to merge 1 commit into from

Conversation

saethlin
Copy link
Member

r? @ghost

@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 May 20, 2023
@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 May 20, 2023
@bors
Copy link
Contributor

bors commented May 20, 2023

⌛ Trying commit 80126b6 with merge 1f144bde8f45c17695fa7df3663d7c9ac65711b9...

@rust-log-analyzer
Copy link
Collaborator

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

Click to see the possible cause of the failure (guessed by this bot)
...........................i............................................................  8008/15027
....................................................i...................................  8096/15027
........................................................................................  8184/15027
........................................................................................  8272/15027
..............F.......................................................................ii  8360/15027
...............................i........................................................  8536/15027
........................................................................................  8624/15027
......................................................ii................................  8712/15027
........................................................................................  8800/15027
---
---- [ui] tests/ui/lto/issue-100772.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/lto/issue-100772.rs" "-Zthreads=1" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "-O" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--remap-path-prefix=/checkout/tests/ui=fake-test-src-base" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/lto/issue-100772/a" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/lto/issue-100772/auxiliary" "-Clto" "-Ctarget-feature=-crt-static" "-Zsanitizer=cfi"
stdout: none
--- stderr -------------------------------
error: internal compiler error: compiler/rustc_symbol_mangling/src/typeid/typeid_itanium_cxx_abi.rs:685:13: encode_ty: unexpected `Param(T/#1)`
thread 'rustc' panicked at 'Box<dyn Any>', /checkout/compiler/rustc_errors/src/lib.rs:1651:9
stack backtrace:
stack backtrace:
   0:     0x7fc741127aa4 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2459a1c5a08b42a9
   1:     0x7fc74118e748 - core::fmt::write::hc2bb203c186edc01
   2:     0x7fc74111ca91 - std::io::Write::write_fmt::hdd4a4041852fc402
   3:     0x7fc7411278b1 - std::sys_common::backtrace::print::h1ea008923a930891
   4:     0x7fc74112a9da - std::panicking::default_hook::{{closure}}::hd9bb9e14e14770df
   5:     0x7fc74112a6ce - std::panicking::default_hook::hcc00a98b10132e2c
   6:     0x7fc741da512b - rustc_driver_impl[ff66ef544b6e7099]::install_ice_hook::{closure#0}
   7:     0x7fc74112b0b7 - std::panicking::rust_panic_with_hook::h0ce2a7b608599407
   8:     0x7fc74494f473 - std[ea5daadf13fee425]::panicking::begin_panic::<rustc_errors[51b79a47e13a5131]::ExplicitBug>::{closure#0}
   9:     0x7fc74494efd6 - std[ea5daadf13fee425]::sys_common::backtrace::__rust_end_short_backtrace::<std[ea5daadf13fee425]::panicking::begin_panic<rustc_errors[51b79a47e13a5131]::ExplicitBug>::{closure#0}, !>
  10:     0x7fc741d06de6 - std[ea5daadf13fee425]::panicking::begin_panic::<rustc_errors[51b79a47e13a5131]::ExplicitBug>
  11:     0x7fc7448c17a6 - std[ea5daadf13fee425]::panic::panic_any::<rustc_errors[51b79a47e13a5131]::ExplicitBug>
  12:     0x7fc7448bff2d - <rustc_errors[51b79a47e13a5131]::HandlerInner>::bug::<alloc[892ec1d74d922758]::string::String>
  13:     0x7fc7448bfd99 - <rustc_errors[51b79a47e13a5131]::Handler>::bug::<alloc[892ec1d74d922758]::string::String>
  14:     0x7fc7448b3fd0 - rustc_middle[f832314d2d2cec65]::util::bug::opt_span_bug_fmt::<rustc_span[a3f6a77aaae95b3a]::span_encoding::Span>::{closure#0}
  15:     0x7fc7448b2d4c - rustc_middle[f832314d2d2cec65]::ty::context::tls::with_opt::<rustc_middle[f832314d2d2cec65]::util::bug::opt_span_bug_fmt<rustc_span[a3f6a77aaae95b3a]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  16:     0x7fc7448b1f6e - rustc_middle[f832314d2d2cec65]::ty::context::tls::with_context_opt::<rustc_middle[f832314d2d2cec65]::ty::context::tls::with_opt<rustc_middle[f832314d2d2cec65]::util::bug::opt_span_bug_fmt<rustc_span[a3f6a77aaae95b3a]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  17:     0x7fc7448b2cf7 - rustc_middle[f832314d2d2cec65]::ty::context::tls::with_opt::<rustc_middle[f832314d2d2cec65]::util::bug::opt_span_bug_fmt<rustc_span[a3f6a77aaae95b3a]::span_encoding::Span>::{closure#0}, !>
  18:     0x7fc7448b3f09 - rustc_middle[f832314d2d2cec65]::util::bug::opt_span_bug_fmt::<rustc_span[a3f6a77aaae95b3a]::span_encoding::Span>
  19:     0x7fc741cf4125 - rustc_middle[f832314d2d2cec65]::util::bug::bug_fmt
  20:     0x7fc743c85b99 - rustc_symbol_mangling[37e592e4b09e07e4]::typeid::typeid_itanium_cxx_abi::encode_ty
  21:     0x7fc743c84dd7 - rustc_symbol_mangling[37e592e4b09e07e4]::typeid::typeid_itanium_cxx_abi::encode_ty
  22:     0x7fc743c836f6 - rustc_symbol_mangling[37e592e4b09e07e4]::typeid::typeid_itanium_cxx_abi::encode_substs
  23:     0x7fc743c82f21 - rustc_symbol_mangling[37e592e4b09e07e4]::typeid::typeid_itanium_cxx_abi::encode_predicates
  24:     0x7fc743c84b52 - rustc_symbol_mangling[37e592e4b09e07e4]::typeid::typeid_itanium_cxx_abi::encode_ty
  25:     0x7fc743c84dd7 - rustc_symbol_mangling[37e592e4b09e07e4]::typeid::typeid_itanium_cxx_abi::encode_ty
  26:     0x7fc743c8813d - rustc_symbol_mangling[37e592e4b09e07e4]::typeid::typeid_itanium_cxx_abi::typeid_for_fnabi
  27:     0x7fc743c872b8 - rustc_symbol_mangling[37e592e4b09e07e4]::typeid::typeid_itanium_cxx_abi::typeid_for_instance
  28:     0x7fc743c54539 - rustc_symbol_mangling[37e592e4b09e07e4]::typeid::typeid_for_instance
  29:     0x7fc7420335d4 - <rustc_codegen_llvm[17215c05f881e532]::context::CodegenCx>::declare_fn
  30:     0x7fc7420344f1 - <rustc_codegen_llvm[17215c05f881e532]::context::CodegenCx as rustc_codegen_ssa[6cdcf7839c259b0c]::traits::declare::PreDefineMethods>::predefine_fn
  31:     0x7fc7420d0ee4 - <rustc_middle[f832314d2d2cec65]::mir::mono::MonoItem as rustc_codegen_ssa[6cdcf7839c259b0c]::mono_item::MonoItemExt>::predefine::<rustc_codegen_llvm[17215c05f881e532]::builder::Builder>
  32:     0x7fc741fa77b2 - rustc_codegen_llvm[17215c05f881e532]::base::compile_codegen_unit::module_codegen
  33:     0x7fc741fa6b2d - rustc_codegen_llvm[17215c05f881e532]::base::compile_codegen_unit
  34:     0x7fc741f6399a - rustc_codegen_ssa[6cdcf7839c259b0c]::base::codegen_crate::<rustc_codegen_llvm[17215c05f881e532]::LlvmCodegenBackend>
  35:     0x7fc7420db8d4 - <rustc_codegen_llvm[17215c05f881e532]::LlvmCodegenBackend as rustc_codegen_ssa[6cdcf7839c259b0c]::traits::backend::CodegenBackend>::codegen_crate
  36:     0x7fc741eb573f - rustc_interface[abc282a9b0dab5cd]::passes::start_codegen
  37:     0x7fc741e9293f - <std[ea5daadf13fee425]::thread::local::LocalKey<core[a29f621235a26afc]::cell::Cell<*const ()>>>::with::<rustc_middle[f832314d2d2cec65]::ty::context::tls::enter_context<<rustc_middle[f832314d2d2cec65]::ty::context::GlobalCtxt>::enter<<rustc_interface[abc282a9b0dab5cd]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[a29f621235a26afc]::result::Result<alloc[892ec1d74d922758]::boxed::Box<dyn core[a29f621235a26afc]::any::Any>, rustc_span[a3f6a77aaae95b3a]::ErrorGuaranteed>>::{closure#0}, core[a29f621235a26afc]::result::Result<alloc[892ec1d74d922758]::boxed::Box<dyn core[a29f621235a26afc]::any::Any>, rustc_span[a3f6a77aaae95b3a]::ErrorGuaranteed>>::{closure#0}, core[a29f621235a26afc]::result::Result<alloc[892ec1d74d922758]::boxed::Box<dyn core[a29f621235a26afc]::any::Any>, rustc_span[a3f6a77aaae95b3a]::ErrorGuaranteed>>
  38:     0x7fc741e799fc - <rustc_interface[abc282a9b0dab5cd]::queries::Queries>::ongoing_codegen
  39:     0x7fc741e0e12a - <rustc_interface[abc282a9b0dab5cd]::interface::Compiler>::enter::<rustc_driver_impl[ff66ef544b6e7099]::run_compiler::{closure#1}::{closure#2}, core[a29f621235a26afc]::result::Result<core[a29f621235a26afc]::option::Option<rustc_interface[abc282a9b0dab5cd]::queries::Linker>, rustc_span[a3f6a77aaae95b3a]::ErrorGuaranteed>>
  40:     0x7fc741df5ab2 - <scoped_tls[effe0779932644a0]::ScopedKey<rustc_span[a3f6a77aaae95b3a]::SessionGlobals>>::set::<rustc_interface[abc282a9b0dab5cd]::interface::run_compiler<core[a29f621235a26afc]::result::Result<(), rustc_span[a3f6a77aaae95b3a]::ErrorGuaranteed>, rustc_driver_impl[ff66ef544b6e7099]::run_compiler::{closure#1}>::{closure#0}, core[a29f621235a26afc]::result::Result<(), rustc_span[a3f6a77aaae95b3a]::ErrorGuaranteed>>
  41:     0x7fc741dc5079 - std[ea5daadf13fee425]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[abc282a9b0dab5cd]::util::run_in_thread_pool_with_globals<rustc_interface[abc282a9b0dab5cd]::interface::run_compiler<core[a29f621235a26afc]::result::Result<(), rustc_span[a3f6a77aaae95b3a]::ErrorGuaranteed>, rustc_driver_impl[ff66ef544b6e7099]::run_compiler::{closure#1}>::{closure#0}, core[a29f621235a26afc]::result::Result<(), rustc_span[a3f6a77aaae95b3a]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a29f621235a26afc]::result::Result<(), rustc_span[a3f6a77aaae95b3a]::ErrorGuaranteed>>
  42:     0x7fc741dc6f69 - <<std[ea5daadf13fee425]::thread::Builder>::spawn_unchecked_<rustc_interface[abc282a9b0dab5cd]::util::run_in_thread_pool_with_globals<rustc_interface[abc282a9b0dab5cd]::interface::run_compiler<core[a29f621235a26afc]::result::Result<(), rustc_span[a3f6a77aaae95b3a]::ErrorGuaranteed>, rustc_driver_impl[ff66ef544b6e7099]::run_compiler::{closure#1}>::{closure#0}, core[a29f621235a26afc]::result::Result<(), rustc_span[a3f6a77aaae95b3a]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a29f621235a26afc]::result::Result<(), rustc_span[a3f6a77aaae95b3a]::ErrorGuaranteed>>::{closure#1} as core[a29f621235a26afc]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  43:     0x7fc741136f8e - std::sys::unix::thread::Thread::new::thread_start::h99fb7b430520f378
  44:     0x7fc740ed3b43 - <unknown>
  45:     0x7fc740f65a00 - <unknown>
  46:                0x0 - <unknown>
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.71.0-nightly (cddc01330 2023-05-20) running on x86_64-unknown-linux-gnu


note: compiler flags: -Z threads=1 -C codegen-units=1 -Z ui-testing -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -Z deduplicate-diagnostics=no -C strip=debuginfo -C rpath -C debuginfo=0 -C lto -C target-feature=-crt-static -Z sanitizer=cfi
query stack during panic:
end of query stack
error: aborting due to previous error
------------------------------------------

@Noratrieb Noratrieb added S-experimental Status: Ongoing experiment that does not require reviewing and won't be merged in its current state. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 20, 2023
@bors
Copy link
Contributor

bors commented May 20, 2023

☀️ Try build successful - checks-actions
Build commit: 1f144bde8f45c17695fa7df3663d7c9ac65711b9 (1f144bde8f45c17695fa7df3663d7c9ac65711b9)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (1f144bde8f45c17695fa7df3663d7c9ac65711b9): comparison URL.

Overall result: ❌✅ regressions and improvements - ACTION NEEDED

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 a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
4.3% [0.2%, 14.0%] 109
Regressions ❌
(secondary)
9.5% [0.3%, 72.6%] 64
Improvements ✅
(primary)
-1.5% [-19.2%, -0.2%] 80
Improvements ✅
(secondary)
-2.1% [-7.3%, -0.3%] 104
All ❌✅ (primary) 1.9% [-19.2%, 14.0%] 189

Max RSS (memory usage)

Results

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)
5.7% [1.5%, 19.1%] 22
Regressions ❌
(secondary)
4.0% [3.0%, 5.4%] 7
Improvements ✅
(primary)
-3.6% [-16.0%, -0.5%] 162
Improvements ✅
(secondary)
-3.7% [-8.8%, -0.9%] 105
All ❌✅ (primary) -2.5% [-16.0%, 19.1%] 184

Cycles

Results

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)
5.4% [1.0%, 21.7%] 122
Regressions ❌
(secondary)
12.6% [2.2%, 82.7%] 56
Improvements ✅
(primary)
-4.5% [-18.8%, -1.8%] 10
Improvements ✅
(secondary)
-3.1% [-6.8%, -1.4%] 24
All ❌✅ (primary) 4.7% [-18.8%, 21.7%] 132

Binary size

Results

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)
2.7% [0.0%, 8.9%] 89
Regressions ❌
(secondary)
6.0% [0.0%, 15.7%] 44
Improvements ✅
(primary)
-4.9% [-27.3%, -0.0%] 45
Improvements ✅
(secondary)
-3.7% [-17.8%, -0.2%] 76
All ❌✅ (primary) 0.2% [-27.3%, 8.9%] 134

Bootstrap: 642.768s -> 716.866s (11.53%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels May 20, 2023
@workingjubilee
Copy link
Member

I feel like it saying "Overall result: regressions and improvements" when faced with a regression this enormous is a sign that the messaging on this is really bad. It's not as one-sided as disabling CopyProp but...

@saethlin saethlin closed this May 26, 2023
@saethlin saethlin deleted the disable-inline branch June 14, 2023 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf-regression Performance regression. S-experimental Status: Ongoing experiment that does not require reviewing and won't be merged in its current state. 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.

7 participants