File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -305,6 +305,19 @@ Format compatibility guarantees
305
305
minor version increment is for added functionality, and patch version
306
306
increments are for bugfixes.
307
307
308
+ Impact of llvm optimizations on coverage reports
309
+ ================================================
310
+
311
+ llvm optimizations (such as inlining or CFG simplification) should have no
312
+ impact on coverage report quality. This is due to the fact that the mapping
313
+ from source regions to profile counters is immutable, and is generated before
314
+ the llvm optimizer kicks in. The optimizer can't prove that profile counter
315
+ instrumentation is safe to delete (because it's not: it affects the profile the
316
+ program emits), and so leaves it alone.
317
+
318
+ Note that this coverage feature does not rely on information that can degrade
319
+ during the course of optimization, such as debug info line tables.
320
+
308
321
Using the profiling runtime without static initializers
309
322
=======================================================
310
323
You can’t perform that action at this time.
0 commit comments