about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-04-30 22:21:07 +0000
committerbors <bors@rust-lang.org>2021-04-30 22:21:07 +0000
commit8a9fa3682dcf0de095ec308a29a7b19b0e011ef0 (patch)
tree2248f0dd7207d7c004baf3b4b235db2de18e281d /compiler/rustc_codegen_llvm/src
parent4ae0a8e413a67b9f6c38f09b24f6179e98c1ba25 (diff)
parenta1d73674294385b53ea4b74c041a6fe9b441b2ae (diff)
downloadrust-8a9fa3682dcf0de095ec308a29a7b19b0e011ef0.tar.gz
rust-8a9fa3682dcf0de095ec308a29a7b19b0e011ef0.zip
Auto merge of #84719 - Mark-Simulacrum:reduce-query-impl, r=davidtwco
Move iter_results to dyn FnMut rather than a generic

This means that we're no longer generating the iteration/locking code for each invocation site of iter_results, rather just once per query (roughly), which seems much better: this is a 15% win in instruction counts when compiling the rustc_query_impl crate. The code where this is used also is pretty cold, I suspect; the old solution didn't fully monomorphize either.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions