about summary refs log tree commit diff
path: root/src/test/codegen-units/partitioning/local-transitive-inlining.rs
AgeCommit message (Collapse)AuthorLines
2018-12-25Remove licensesMark Rousskov-10/+0
2018-05-17Rename trans to codegen everywhere.Irina Popa-5/+5
2017-11-07Update codegen-unit tests.Michael Woerister-7/+7
2017-10-07rustc: Don't inline in CGUs at -O0Alex Crichton-0/+1
This commit tweaks the behavior of inlining functions into multiple codegen units when rustc is compiling in debug mode. Today rustc will unconditionally treat `#[inline]` functions by translating them into all codegen units that they're needed within, marking the linkage as `internal`. This commit changes the behavior so that in debug mode (compiling at `-O0`) rustc will instead only translate `#[inline]` functions into *one* codegen unit, forcing all other codegen units to reference this one copy. The goal here is to improve debug compile times by reducing the amount of translation that happens on behalf of multiple codegen units. It was discovered in #44941 that increasing the number of codegen units had the adverse side effect of increasing the overal work done by the compiler, and the suspicion here was that the compiler was inlining, translating, and codegen'ing more functions with more codegen units (for example `String` would be basically inlined into all codegen units if used). The strategy in this commit should reduce the cost of `#[inline]` functions to being equivalent to one codegen unit, which is only translating and codegen'ing inline functions once. Collected [data] shows that this does indeed improve the situation from [before] as the overall cpu-clock time increases at a much slower rate and when pinned to one core rustc does not consume significantly more wall clock time than with one codegen unit. One caveat of this commit is that the symbol names for inlined functions that are only translated once needed some slight tweaking. These inline functions could be translated into multiple crates and we need to make sure the symbols don't collideA so the crate name/disambiguator is mixed in to the symbol name hash in these situations. [data]: https://github.com/rust-lang/rust/issues/44941#issuecomment-334880911 [before]: https://github.com/rust-lang/rust/issues/44941#issuecomment-334583384
2017-07-13Adapt cgu-partitioning tests to pre-trans symbol internalization.Michael Woerister-2/+2
2016-09-15Adapt codegen-unit test cases to new behaviourMichael Woerister-2/+2
2016-07-08Improve linkage assignment in trans::partitioning.Michael Woerister-4/+4
2016-05-01Fix a race condition caused by concurrently executed codegen unit tests.Michael Woerister-1/+3
2016-04-28Make the codegen unit partitioner also emit item declarations.Michael Woerister-1/+1
2016-04-28Add FixedUnitCount codegen unit partitioning strategy.Michael Woerister-1/+1
2016-04-28Fix codegen-units testsJames Miller-2/+0
I'm not sure what the signficance of `drop-glue i8` is, nor why one of the tests had it appear while the others had it disappear. Either way it doesn't seem like the presence or absense of it is the focus of the tests.
2016-04-15Add initial version of codegen unit partitioning for incremental compilation.Michael Woerister-0/+54