rust/compiler
bors 1ce51982b8 Auto merge of #101615 - compiler-errors:rpitit-perf, r=oli-obk
Make `compare_predicate_entailment` no longer a query

Make `compare_predicate_entailment` so it's no longer a query (again), and splits out the new logic (that equates the return types to infer RPITITs) into its own query. This means that this new query (now called `collect_trait_impl_trait_tys`) is no longer executed for non-RPITIT cases.

This should improve perf (https://github.com/rust-lang/rust/pull/101224#issuecomment-1241682203), though in practice we see that these some crates remain from the primary regressions list on the original report... They are all <= 0.43% regression and seemingly only on the incr-full scenario for all of them.

I am at a loss for what might be causing this regression other than what I fixed here, since we don't introduce much new non-RPITIT logic except for some `def_kind` query calls in some places, for example, like projection. Maybe that's it?

----

Originally this PR was opened to test enabling `cache_on_disk` (62164aaaa11) but that didn't turn out to be very useful (https://github.com/rust-lang/rust/pull/101615#issuecomment-1242403205), so that led me to just split the query (and rename the PR).
2022-09-13 15:33:06 +00:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Rollup merge of #101602 - nnethercote:AttrTokenStream, r=petrochenkov 2022-09-13 16:51:31 +05:30
rustc_ast_lowering Impove diagnostic for .await-ing non-futures 2022-09-12 16:54:25 +02:00
rustc_ast_passes Auto merge of #96709 - jackh726:gats-stabilization, r=compiler-errors 2022-09-13 09:39:41 +00:00
rustc_ast_pretty
rustc_attr
rustc_borrowck Avoid Iterator::last 2022-09-11 17:23:00 +02:00
rustc_builtin_macros Rename AttrAnnotatedToken{Stream,Tree}. 2022-09-09 12:45:26 +10:00
rustc_codegen_cranelift Auto merge of #99556 - davidtwco:collapse-debuginfo, r=wesleywiser 2022-09-13 01:19:05 +00:00
rustc_codegen_gcc
rustc_codegen_llvm Rollup merge of #100293 - yanchen4791:add-inline-llvm-option, r=nnethercote 2022-09-12 15:21:29 +05:30
rustc_codegen_ssa Auto merge of #100101 - BelovDV:issue-99429, r=petrochenkov 2022-09-13 04:00:24 +00:00
rustc_const_eval Auto merge of #101483 - oli-obk:guaranteed_opt, r=fee1-dead 2022-09-10 09:50:21 +00:00
rustc_data_structures Auto merge of #99334 - NiklasJonsson:84447/error-privacy, r=oli-obk 2022-09-12 15:57:37 +00:00
rustc_driver Fix ICE report flags display. 2022-09-08 16:08:53 -07:00
rustc_error_codes
rustc_error_messages Auto merge of #100101 - BelovDV:issue-99429, r=petrochenkov 2022-09-13 04:00:24 +00:00
rustc_errors Don't render inline suggestions of only spaces 2022-09-13 03:52:43 +00:00
rustc_expand Rollup merge of #101602 - nnethercote:AttrTokenStream, r=petrochenkov 2022-09-13 16:51:31 +05:30
rustc_feature Auto merge of #96709 - jackh726:gats-stabilization, r=compiler-errors 2022-09-13 09:39:41 +00:00
rustc_fs_util
rustc_graphviz
rustc_hir Rollup merge of #101690 - kadiwa4:avoid_iterator_last, r=oli-obk 2022-09-13 16:51:31 +05:30
rustc_hir_pretty Handle generic parameters. 2022-09-09 01:31:46 +00:00
rustc_incremental
rustc_index
rustc_infer Auto merge of #101615 - compiler-errors:rpitit-perf, r=oli-obk 2022-09-13 15:33:06 +00:00
rustc_interface change rlib format to discern native dependencies 2022-09-12 16:45:03 +03:00
rustc_lexer
rustc_lint Rollup merge of #101690 - kadiwa4:avoid_iterator_last, r=oli-obk 2022-09-13 16:51:31 +05:30
rustc_lint_defs Auto merge of #96709 - jackh726:gats-stabilization, r=compiler-errors 2022-09-13 09:39:41 +00:00
rustc_llvm Introduce a fallible variant of LLVMConstIntGetZExtValue 2022-09-09 15:54:14 +02:00
rustc_log
rustc_macros
rustc_metadata Auto merge of #96709 - jackh726:gats-stabilization, r=compiler-errors 2022-09-13 09:39:41 +00:00
rustc_middle Auto merge of #101615 - compiler-errors:rpitit-perf, r=oli-obk 2022-09-13 15:33:06 +00:00
rustc_mir_build Auto merge of #100968 - cjgillot:mir-upvar-vec, r=wesleywiser 2022-09-10 12:07:29 +00:00
rustc_mir_dataflow
rustc_mir_transform minor fixups as per PR feedback 2022-09-11 14:04:17 +08:00
rustc_monomorphize rename codegen_fulfill_obligation 2022-09-09 13:36:27 +02:00
rustc_parse Rename {Create,Lazy}TokenStream as {To,Lazy}AttrTokenStream. 2022-09-09 17:25:38 +10:00
rustc_parse_format
rustc_passes Auto merge of #99556 - davidtwco:collapse-debuginfo, r=wesleywiser 2022-09-13 01:19:05 +00:00
rustc_plugin_impl
rustc_privacy rustc_error, rustc_private, rustc_ast: Switch to stable hash containers 2022-09-10 11:49:12 +02:00
rustc_query_impl Rollup merge of #101635 - jyn514:queries-new-derived, r=cjgillot 2022-09-10 18:56:10 +05:30
rustc_query_system
rustc_resolve Avoid Iterator::last 2022-09-11 17:23:00 +02:00
rustc_save_analysis Handle generic parameters. 2022-09-09 01:31:46 +00:00
rustc_serialize
rustc_session Rollup merge of #101690 - kadiwa4:avoid_iterator_last, r=oli-obk 2022-09-13 16:51:31 +05:30
rustc_smir
rustc_span Auto merge of #100640 - reitermarkus:socket-display-buffer, r=thomcc 2022-09-13 06:41:37 +00:00
rustc_symbol_mangling Remove ReEmpty 2022-09-08 20:55:55 -04:00
rustc_target Use RelocModel::Pic for UEFI targets 2022-09-09 15:26:19 -04:00
rustc_trait_selection Auto merge of #96709 - jackh726:gats-stabilization, r=compiler-errors 2022-09-13 09:39:41 +00:00
rustc_traits Remove ReEmpty 2022-09-08 20:55:55 -04:00
rustc_transmute
rustc_ty_utils Auto merge of #100251 - compiler-errors:tuple-trait-2, r=jackh726 2022-09-12 03:24:29 +00:00
rustc_type_ir Remove ReEmpty 2022-09-08 20:55:55 -04:00
rustc_typeck Auto merge of #101615 - compiler-errors:rpitit-perf, r=oli-obk 2022-09-13 15:33:06 +00:00