rust/compiler
bors 02f7806ecd Auto merge of #124606 - scottmcm:less-expect, r=cjgillot
Stop `llvm.expect`ing assert terminators

We're putting `llvm.expect` calls before the <https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/enum.TerminatorKind.html#variant.Assert> terminators.

But we don't need them.  One of the arms is always to a panic function that's marked `#[cold]`, which is `cold` <https://llvm.org/docs/LangRef.html#function-attributes> in LLVM, which

> When computing edge weights, basic blocks post-dominated by a cold function call are also considered to be cold; and, thus, given low weight.

So even without us emitting the extra intrinsic call, LLVM knows what to expect for the `br`.  Thus we can save the (small) effort of emitting it and then LLVM optimizing it out.

r? compiler
2024-05-05 01:06:22 +00:00
..
rustc Change SIGPIPE ui from #[unix_sigpipe = "..."] to -Zon-broken-pipe=... 2024-05-02 19:48:29 +02:00
rustc_abi Rollup merge of #124555 - Zalathar:init-coverage, r=nnethercote 2024-05-03 20:33:46 +02:00
rustc_arena
rustc_ast Various improvements to entrypoint code 2024-05-04 14:48:42 +02:00
rustc_ast_ir
rustc_ast_lowering Auto merge of #124401 - oli-obk:some_hir_cleanups, r=cjgillot 2024-05-04 00:32:27 +00:00
rustc_ast_passes
rustc_ast_pretty AST pretty: Use builtin_syntax for type ascription 2024-05-03 01:10:22 +02:00
rustc_attr
rustc_baked_icu_data
rustc_borrowck Step bootstrap cfgs 2024-05-01 22:19:11 -04:00
rustc_builtin_macros Various improvements to entrypoint code 2024-05-04 14:48:42 +02:00
rustc_codegen_cranelift
rustc_codegen_gcc Auto merge of #123441 - saethlin:fixed-len-file-names, r=oli-obk 2024-05-03 17:41:48 +00:00
rustc_codegen_llvm Auto merge of #124675 - matthiaskrgr:rollup-x6n79ua, r=matthiaskrgr 2024-05-03 19:46:04 +00:00
rustc_codegen_ssa Auto merge of #124606 - scottmcm:less-expect, r=cjgillot 2024-05-05 01:06:22 +00:00
rustc_const_eval Rollup merge of #124720 - RalfJung:interpret-drop, r=compiler-errors 2024-05-04 22:27:33 +02:00
rustc_data_structures Auto merge of #123441 - saethlin:fixed-len-file-names, r=oli-obk 2024-05-03 17:41:48 +00:00
rustc_driver
rustc_driver_impl Fix Cargo.toml whitespace. 2024-05-03 16:03:17 +10:00
rustc_error_codes
rustc_error_messages
rustc_errors Remove some low-value use renamings. 2024-05-03 16:03:12 +10:00
rustc_expand Refactor Frame. 2024-05-03 09:06:26 +10:00
rustc_feature Implement do_not_recommend in the new solver 2024-05-04 12:51:10 -04:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir Auto merge of #124401 - oli-obk:some_hir_cleanups, r=cjgillot 2024-05-04 00:32:27 +00:00
rustc_hir_analysis Rollup merge of #124687 - fee1-dead-contrib:private-clauses, r=compiler-errors 2024-05-03 23:34:25 -04:00
rustc_hir_pretty
rustc_hir_typeck Rollup merge of #124648 - nnethercote:trim-crate-graph, r=jackh726 2024-05-03 23:34:22 -04:00
rustc_incremental Auto merge of #123441 - saethlin:fixed-len-file-names, r=oli-obk 2024-05-03 17:41:48 +00:00
rustc_index
rustc_index_macros
rustc_infer Use ObligationCtxt in favor of TraitEngine in many places 2024-05-02 22:03:01 -04:00
rustc_interface Rollup merge of #124648 - nnethercote:trim-crate-graph, r=jackh726 2024-05-03 23:34:22 -04:00
rustc_lexer
rustc_lint Update Cargo diagnostics in check-cfg 2024-05-04 17:26:15 +02:00
rustc_lint_defs Add an explanation about never type fallback 2024-05-02 03:47:32 +02:00
rustc_llvm
rustc_log
rustc_macros
rustc_metadata Rollup merge of #124582 - RalfJung:std-not-found, r=Nilstrieb 2024-05-02 15:11:22 +02:00
rustc_middle Rollup merge of #124418 - compiler-errors:better-cause, r=lcnr 2024-05-03 23:34:21 -04:00
rustc_mir_build Auto merge of #124401 - oli-obk:some_hir_cleanups, r=cjgillot 2024-05-04 00:32:27 +00:00
rustc_mir_dataflow Inline & delete Ty::new_unit, since it's just a field access 2024-05-02 17:49:23 +02:00
rustc_mir_transform Auto merge of #123602 - cjgillot:gvn-borrowed, r=oli-obk 2024-05-03 21:50:13 +00:00
rustc_monomorphize
rustc_next_trait_solver
rustc_parse
rustc_parse_format
rustc_passes Various improvements to entrypoint code 2024-05-04 14:48:42 +02:00
rustc_pattern_analysis
rustc_privacy Remove some unneeded Cargo.toml dependencies. 2024-05-03 15:33:52 +10:00
rustc_query_impl
rustc_query_system Remove some unneeded Cargo.toml dependencies. 2024-05-03 15:33:52 +10:00
rustc_resolve Rollup merge of #124293 - oli-obk:miri_intrinsic_fallback_body, r=RalfJung 2024-05-04 12:37:22 +02:00
rustc_sanitizers
rustc_serialize Step bootstrap cfgs 2024-05-01 22:19:11 -04:00
rustc_session Rollup merge of #124480 - Enselic:on-broken-pipe, r=jieyouxu 2024-05-03 23:34:22 -04:00
rustc_smir
rustc_span Rollup merge of #124480 - Enselic:on-broken-pipe, r=jieyouxu 2024-05-03 23:34:22 -04:00
rustc_symbol_mangling Auto merge of #123441 - saethlin:fixed-len-file-names, r=oli-obk 2024-05-03 17:41:48 +00:00
rustc_target Rollup merge of #124677 - djkoloski:set_fuchsia_frame_pointer, r=tmandry 2024-05-04 12:37:22 +02:00
rustc_trait_selection Rollup merge of #124718 - compiler-errors:record-impl-args, r=lcnr 2024-05-04 22:27:33 +02:00
rustc_traits Use ObligationCtxt in favor of TraitEngine in many places 2024-05-02 22:03:01 -04:00
rustc_transmute
rustc_ty_utils Inline & delete Ty::new_unit, since it's just a field access 2024-05-02 17:49:23 +02:00
rustc_type_ir
stable_mir