about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2016-09-30 17:44:48 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2016-10-03 13:34:48 +1100
commit3779971dbb397ff8b1668c379812b903a6a907ec (patch)
tree5cfc9e9a5fb3d9f5251ef0b7555c5125c5b9cc33 /src/test/run-pass/thinlto
parent1fece3d84b41bf1d544e48b10823f3dade45a120 (diff)
downloadrust-3779971dbb397ff8b1668c379812b903a6a907ec.tar.gz
rust-3779971dbb397ff8b1668c379812b903a6a907ec.zip
Optimize plug_leaks some more.
This commit avoids the `resolve_type_vars_if_possible` call in
`plug_leaks` when `skol_map` is empty, which is the common case. It also
changes the signature of `plug_leaks` slightly to avoid the need for a
`clone` of `value`. These changes give speed-ups of up a few percent on
some of the rustc-benchmarks.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions