<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_codegen_llvm/src/coverageinfo, branch stable</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=stable</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=stable'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-07-30T03:17:05+00:00</updated>
<entry>
<title>coverage: Re-land "Enlarge empty spans during MIR instrumentation"</title>
<updated>2025-07-30T03:17:05+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-05-04T04:09:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2e6f4a59226fd82c526df0f61fefc6fea44e7750'/>
<id>urn:sha1:2e6f4a59226fd82c526df0f61fefc6fea44e7750</id>
<content type='text'>
This allows us to assume that coverage spans will only be discarded during
codegen in very unusual situations.
</content>
</entry>
<entry>
<title>coverage: Clarify that getting a PGO name also makes a function "used"</title>
<updated>2025-07-27T11:49:46+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-07-27T11:29:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=89b6b0b6a482cb0d632f54f14936def9c034570d'/>
<id>urn:sha1:89b6b0b6a482cb0d632f54f14936def9c034570d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>coverage: Infer `instances_used` from `pgo_func_name_var_map`</title>
<updated>2025-07-27T11:49:37+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-07-27T11:19:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=24e2b4832bfa0bf1b60159af0ae11b15de55590e'/>
<id>urn:sha1:24e2b4832bfa0bf1b60159af0ae11b15de55590e</id>
<content type='text'>
In obscure circumstances, we would sometimes emit a covfun record for a
function with no physical coverage counters, causing `llvm-cov` to fail with
the cryptic error message:

    malformed instrumentation profile data: function name is empty

We can eliminate this mismatch by removing `instances_used` entirely, and
instead inferring its contents from the keys of `pgo_func_name_var_map`.

This makes it impossible for a "used" function to lack a PGO name entry.
</content>
</entry>
<entry>
<title>Revert "coverage: Enlarge empty spans during MIR instrumentation, not codegen"</title>
<updated>2025-07-26T01:14:40+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-07-26T01:14:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2b17897092443d3873e273dfa6366784b78f5b44'/>
<id>urn:sha1:2b17897092443d3873e273dfa6366784b78f5b44</id>
<content type='text'>
This reverts commit f877aa7d14916f71a2f88c6d4c009e7ded7684c4.
</content>
</entry>
<entry>
<title>coverage: Enlarge empty spans during MIR instrumentation, not codegen</title>
<updated>2025-07-22T09:49:54+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-05-04T04:09:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f877aa7d14916f71a2f88c6d4c009e7ded7684c4'/>
<id>urn:sha1:f877aa7d14916f71a2f88c6d4c009e7ded7684c4</id>
<content type='text'>
This allows us to assume that coverage spans will only be discarded during
codegen in very unusual situations.
</content>
</entry>
<entry>
<title>Remove methods from StaticCodegenMethods that are not called in cg_ssa itself</title>
<updated>2025-05-28T20:55:00+00:00</updated>
<author>
<name>bjorn3</name>
<email>17426603+bjorn3@users.noreply.github.com</email>
</author>
<published>2025-01-09T18:29:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d7c0bde0c11301b9a782eabc469f7a7548505d4f'/>
<id>urn:sha1:d7c0bde0c11301b9a782eabc469f7a7548505d4f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove a couple of uses of interior mutability around statics</title>
<updated>2025-05-28T20:55:00+00:00</updated>
<author>
<name>bjorn3</name>
<email>17426603+bjorn3@users.noreply.github.com</email>
</author>
<published>2024-12-13T09:52:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0fd257d66ca761c5eba965fac52acffe3a8a7d96'/>
<id>urn:sha1:0fd257d66ca761c5eba965fac52acffe3a8a7d96</id>
<content type='text'>
</content>
</entry>
<entry>
<title>coverage: Revert "unused local file IDs" due to empty function names</title>
<updated>2025-05-27T13:33:29+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-05-27T13:25:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3f526eeec4efe8a31154b7b20b64d99c1badce9e'/>
<id>urn:sha1:3f526eeec4efe8a31154b7b20b64d99c1badce9e</id>
<content type='text'>
This reverts commit 3b22c21dd8c30f499051fe7a758ca0e5d81eb638, reversing
changes made to 5f292eea6d63abbd26f1e6e00a0b8cf21d828d7d.
</content>
</entry>
<entry>
<title>coverage: Detect unused local file IDs to avoid an LLVM assertion</title>
<updated>2025-05-09T14:24:03+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-05-09T10:57:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=078144fdfa7ae627d43cd919d660a71bef1e4658'/>
<id>urn:sha1:078144fdfa7ae627d43cd919d660a71bef1e4658</id>
<content type='text'>
This case can't actually happen yet (other than via a testing flag), because
currently all of a function's spans must belong to the same file and expansion.
But this will be an important edge case when adding expansion region support.
</content>
</entry>
<entry>
<title>coverage: Hoist `counter_for_bcb` out of its loop</title>
<updated>2025-05-09T14:24:03+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-05-09T11:27:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8cd8b23b9e4b1f05373831644b005b21a13a9c69'/>
<id>urn:sha1:8cd8b23b9e4b1f05373831644b005b21a13a9c69</id>
<content type='text'>
Having this helper function in the loop was confusing, because it doesn't rely
on anything that changes between loop iterations.
</content>
</entry>
</feed>
