Skip to content

Commit d854c3c

Browse files
committed
Auto merge of #85729 - LeSeulArtichaut:thir-no-hash, r=nikomatsakis
Don't hash `thir_body` Experiment to see if/how much this helps negate the perf impact of #85273. r? `@ghost`
2 parents ea78d1e + 9385be7 commit d854c3c

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_middle/src/query

1 file changed

+2
-0
lines changed

compiler/rustc_middle/src/query/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ rustc_queries! {
222222

223223
/// Fetch the THIR for a given body. If typeck for that body failed, returns an empty `Thir`.
224224
query thir_body(key: ty::WithOptConstParam<LocalDefId>) -> (&'tcx Steal<thir::Thir<'tcx>>, thir::ExprId) {
225+
// Perf tests revealed that hashing THIR is inefficient (see #85729).
226+
no_hash
225227
desc { |tcx| "building THIR for `{}`", tcx.def_path_str(key.did.to_def_id()) }
226228
}
227229

0 commit comments

Comments
 (0)