rust/compiler
bors 2d6eccdb67 Auto merge of #77755 - bugadani:perf-calc-dtor, r=ecstatic-morse
Monomorphize `calculate_dtor` instead of using function pointers

Change `calculate_dtor` to avoid dynamic dispatching. This change allows the empty functions to be optimized away.

Based on the discussion in https://github.com/rust-lang/rust/pull/77754#discussion_r502498970, the performance impact of this change was measured.

Perf run results: https://perf.rust-lang.org/compare.html?start=7bc5839e99411aad9061a632b62075d1346cbb3b&end=ffec759ae9bbc4d6d2235ff40ade6723a85bc7cc
2020-10-13 10:19:30 +00:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast address review comments 2020-10-09 22:00:48 -07:00
rustc_ast_lowering
rustc_ast_passes
rustc_ast_pretty
rustc_attr
rustc_builtin_macros Rollup merge of #77831 - LingMan:use_std, r=jonas-schievink 2020-10-13 04:08:03 +09:00
rustc_codegen_llvm Auto merge of #76830 - Artoria2e5:tune, r=nagisa 2020-10-13 02:49:00 +00:00
rustc_codegen_ssa Auto merge of #76830 - Artoria2e5:tune, r=nagisa 2020-10-13 02:49:00 +00:00
rustc_data_structures
rustc_driver Auto merge of #77649 - dash2507:replace_run_compiler, r=matthewjasper 2020-10-11 01:26:06 +00:00
rustc_error_codes Fix typo in error code description 2020-10-10 18:02:53 +09:00
rustc_errors
rustc_expand
rustc_feature
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_pretty
rustc_incremental
rustc_index
rustc_infer
rustc_interface Auto merge of #76830 - Artoria2e5:tune, r=nagisa 2020-10-13 02:49:00 +00:00
rustc_lexer Noticed a potential bug in eat_while(): it doesn't account for number of UTF8 bytes. 2020-10-09 11:12:54 +02:00
rustc_lint
rustc_llvm Auto merge of #76859 - Aaron1011:fix/llvm-cgu-reuse, r=davidtwco,nikic 2020-10-11 20:50:02 +00:00
rustc_macros
rustc_metadata Take functions by value 2020-10-10 16:19:53 +02:00
rustc_middle Auto merge of #77755 - bugadani:perf-calc-dtor, r=ecstatic-morse 2020-10-13 10:19:30 +00:00
rustc_mir Auto merge of #77755 - bugadani:perf-calc-dtor, r=ecstatic-morse 2020-10-13 10:19:30 +00:00
rustc_mir_build Refactor how SwitchInt stores jump targets 2020-10-10 17:46:11 +02:00
rustc_parse rustc_parse: More precise spans for tuple.0.0 2020-10-11 02:33:49 +03:00
rustc_parse_format
rustc_passes
rustc_plugin_impl
rustc_privacy
rustc_query_system
rustc_resolve address review comments 2020-10-09 22:00:48 -07:00
rustc_save_analysis
rustc_serialize
rustc_session Auto merge of #76830 - Artoria2e5:tune, r=nagisa 2020-10-13 02:49:00 +00:00
rustc_span
rustc_symbol_mangling
rustc_target Auto merge of #77337 - lzutao:asm-mips64, r=Amanieu 2020-10-10 17:32:28 +00:00
rustc_trait_selection Auto merge of #77792 - matthewjasper:instrument-trait-selection, r=oli-obk 2020-10-12 23:04:55 +00:00
rustc_traits
rustc_ty
rustc_typeck Take functions by value 2020-10-10 16:19:53 +02:00