]> git.lizzy.rs Git - rust.git/commit
Add CGU size heuristic for partitioning
authorvarkor <github@varkor.com>
Sat, 13 Jan 2018 15:55:38 +0000 (15:55 +0000)
committervarkor <github@varkor.com>
Fri, 19 Jan 2018 00:41:21 +0000 (00:41 +0000)
commit8447f4fc0fe4e497b9e914f8dc81b3134efaf6a4
treeef8d857bc7ac3a5ab7b11803ea8c88120ba4cc9c
parent3bd4af88bea2e6ecdd3455ed89b3ef1fc3500aa4
Add CGU size heuristic for partitioning

This addresses the concern of #47316 by estimating CGU size based on
the size of its MIR. Looking at the size estimate differences for a
small selection of crates, this heuristic produces different orderings,
which should more accurately reflect optimisation time.

Fixes #47316.
src/librustc_mir/monomorphize/partitioning.rs