about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2021-04-29 10:23:17 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2021-04-29 17:26:46 -0400
commita1d73674294385b53ea4b74c041a6fe9b441b2ae (patch)
treeca191ac728630a52e726bb9d3691e093ce295c71 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parentc488f15700f15664b3bbda742c3f53f2b7a508d9 (diff)
downloadrust-a1d73674294385b53ea4b74c041a6fe9b441b2ae.tar.gz
rust-a1d73674294385b53ea4b74c041a6fe9b441b2ae.zip
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.

This is a 15% win in instruction counts when compiling the rustc_query_impl crate.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions