Skip to content

Commit

Permalink
Auto merge of #80831 - jyn514:no-inline, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
Don't mark `force_query_with_job` as `inline(always)`

It's rather large, and using `inline(always)` forces it to be recompiled
in each calling crate. Hopefully this change will help with #65031. I intentionally only removed inline from `force_query_with_job` because the other functions are tiny and I wanted to measure this change on its own.

This may conflict with #78780. I am not sure if it will hurt or help.

cc `@cjgillot`
  • Loading branch information
bors committed Jan 10, 2021
2 parents f30733a + 0215b3a commit 7cf2056
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion compiler/rustc_query_system/src/query/plumbing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,6 @@ fn incremental_verify_ich<CTX, K, V>(
assert!(new_hash == old_hash, "found unstable fingerprints for {:?}", dep_node,);
}

#[inline(always)]
fn force_query_with_job<C, CTX>(
tcx: CTX,
key: C::Key,
Expand Down

0 comments on commit 7cf2056

Please sign in to comment.