<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/codegen-units/partitioning, branch 1.53.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.53.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.53.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2021-04-03T20:30:20+00:00</updated>
<entry>
<title>Remove redundant `ignore-tidy-linelength` annotations</title>
<updated>2021-04-03T20:30:20+00:00</updated>
<author>
<name>Simon Jakobi</name>
<email>simon.jakobi@gmail.com</email>
</author>
<published>2021-04-03T11:05:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3ea62cb5d19846b44172d861ae231c8c09322800'/>
<id>urn:sha1:3ea62cb5d19846b44172d861ae231c8c09322800</id>
<content type='text'>
This is step 2 towards fixing #77548.

In the codegen and codegen-units test suites, the `//` comment markers
were kept in order not to affect any source locations. This is because
these tests cannot be automatically `--bless`ed.
</content>
</entry>
<entry>
<title>Deprecate items that accidentally weren't deprecated</title>
<updated>2021-03-10T00:09:20+00:00</updated>
<author>
<name>bstrie</name>
<email>865233+bstrie@users.noreply.github.com</email>
</author>
<published>2021-02-14T21:42:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=49aa79ec11fe40c67e160d9663addb7a0b7151f9'/>
<id>urn:sha1:49aa79ec11fe40c67e160d9663addb7a0b7151f9</id>
<content type='text'>
Fixes #82080
</content>
</entry>
<entry>
<title>ty: remove obsolete printer</title>
<updated>2020-08-30T17:59:07+00:00</updated>
<author>
<name>David Wood</name>
<email>david@davidtw.co</email>
</author>
<published>2020-08-28T13:31:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6ff471b1cf85dea0e8f83b5212042905aac35143'/>
<id>urn:sha1:6ff471b1cf85dea0e8f83b5212042905aac35143</id>
<content type='text'>
This commit removes the obsolete printer and replaces all uses of it
with `FmtPrinter`. Of the replaced uses, all but one use was in `debug!`
logging, two cases were notable:

- `MonoItem::to_string` is used in `-Z print-mono-items` and therefore
  affects the output of all codegen-units tests.
- `DefPathBasedNames` was used in `librustc_codegen_llvm/type_of.rs`
  with `LLVMStructCreateNamed` and that'll now get different values, but
  this should result in no functional change.

Signed-off-by: David Wood &lt;david@davidtw.co&gt;
</content>
</entry>
<entry>
<title>Change how compiler-builtins gets many CGUs</title>
<updated>2020-06-15T14:38:00+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2020-06-08T16:02:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d6156e8fe5619143c687983d3ffa5b7ccc37c77e'/>
<id>urn:sha1:d6156e8fe5619143c687983d3ffa5b7ccc37c77e</id>
<content type='text'>
This commit intends to fix an accidental regression from #70846. The
goal of #70846 was to build compiler-builtins with a maximal number of
CGUs to ensure that each module in the source corresponds to an object
file. This high degree of control for compiler-builtins is desirable to
ensure that there's at most one exported symbol per CGU, ideally
enabling compiler-builtins to not conflict with the system libgcc as
often.

In #70846, however, only part of the compiler understands that
compiler-builtins is built with many CGUs. The rest of the compiler
thinks it's building with `sess.codegen_units()`. Notably the
calculation of `sess.lto()` consults `sess.codegen_units()`, which when
there's only one CGU it disables ThinLTO. This means that
compiler-builtins is built without ThinLTO, which is quite harmful to
performance! This is the root of the cause from #73135 where intrinsics
were found to not be inlining trivial functions.

The fix applied in this commit is to remove the special-casing of
compiler-builtins in the compiler. Instead the build system is now
responsible for special-casing compiler-builtins. It doesn't know
exactly how many CGUs will be needed but it passes a large number that
is assumed to be much greater than the number of source-level modules
needed. After reading the various locations in the compiler source, this
seemed like the best solution rather than adding more and more special
casing in the compiler for compiler-builtins.

Closes #73135
</content>
</entry>
<entry>
<title>Keep codegen units unmerged when building compiler builtins</title>
<updated>2020-04-06T00:00:00+00:00</updated>
<author>
<name>Tomasz Miąsko</name>
<email>tomasz.miasko@gmail.com</email>
</author>
<published>2020-04-06T00:00:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c8b83babf358cd3094fb05a65889a6d017a81d96'/>
<id>urn:sha1:c8b83babf358cd3094fb05a65889a6d017a81d96</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add a test case for incremental + codegen-units interaction.</title>
<updated>2020-03-31T14:23:28+00:00</updated>
<author>
<name>Michael Woerister</name>
<email>michaelwoerister@posteo</email>
</author>
<published>2020-03-19T16:18:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=408e6e3dbd8ab2e4f154559859c92fd88b5e4713'/>
<id>urn:sha1:408e6e3dbd8ab2e4f154559859c92fd88b5e4713</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove `-Z incremental`.</title>
<updated>2020-03-24T01:08:30+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>nnethercote@mozilla.com</email>
</author>
<published>2020-03-23T03:13:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=46c8a2c26eee8148e47237e90efde558d1374580'/>
<id>urn:sha1:46c8a2c26eee8148e47237e90efde558d1374580</id>
<content type='text'>
`-C incremental` was introduced over two years ago. `-Z incremental` was
kept for transitioning, but it's been long enough now that it should be
ok to remove it.
</content>
</entry>
<entry>
<title>Update codegen-units tests</title>
<updated>2020-02-26T19:45:46+00:00</updated>
<author>
<name>Matthew Jasper</name>
<email>mjjasper1@gmail.com</email>
</author>
<published>2019-12-15T19:53:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b9445311462549fdc22e5ca0732be60c1b2a5d32'/>
<id>urn:sha1:b9445311462549fdc22e5ca0732be60c1b2a5d32</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make drop-glue take advantage of -Zshare-generics.</title>
<updated>2020-01-23T12:15:15+00:00</updated>
<author>
<name>Michael Woerister</name>
<email>michaelwoerister@posteo</email>
</author>
<published>2020-01-20T15:38:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2ceb92bc53a849e36341c3fd619cb49470e224e2'/>
<id>urn:sha1:2ceb92bc53a849e36341c3fd619cb49470e224e2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>adjust codegen-units tests</title>
<updated>2020-01-19T16:09:52+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2020-01-19T16:09:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b77a7997a866573bdf835f9dc00012877d87a22f'/>
<id>urn:sha1:b77a7997a866573bdf835f9dc00012877d87a22f</id>
<content type='text'>
</content>
</entry>
</feed>
