about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-09-08 16:07:39 +0800
committerkennytm <kennytm@gmail.com>2018-09-08 18:26:34 +0800
commitdbc9ec9da8da4deae0d3520c3b7befd124b9cb18 (patch)
tree532d3085bcb355f80c3dcbcfdf0eb5cd97e291c2 /src/test/incremental/thinlto
parent7569d9266e607df6579916e871d65480aaa8b50a (diff)
parentfb307e529d217c6602c1c0359b14947b6897265c (diff)
downloadrust-dbc9ec9da8da4deae0d3520c3b7befd124b9cb18.tar.gz
rust-dbc9ec9da8da4deae0d3520c3b7befd124b9cb18.zip
Rollup merge of #53942 - nnethercote:faster-precompute, r=nikomatsakis
Rewrite `precompute_borrows_out_of_scope` for fewer hash table lookups.

It now does one hash table lookup per basic block, instead of one per
statement. This is worthwhile because this function is hot for NLL
builds of `ucd`.

I haven't measured the effect of this yet because I'm having trouble doing optimized builds of rustc that are suitable for profiling (#53916). I will do an online perf run instead.

r? @nikomatsakis
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions