about summary refs log tree commit diff
path: root/tests/mir-opt/instrument_coverage.bar.InstrumentCoverage.diff
AgeCommit message (Collapse)AuthorLines
2023-10-19Allow to run filecheck in mir-opt tests.Camille GILLOT-1/+1
2023-10-18coverage: Store all of a function's mappings in function coverage infoZalathar-1/+3
Previously, mappings were attached to individual coverage statements in MIR. That necessitated special handling in MIR optimizations to avoid deleting those statements, since otherwise codegen would be unable to reassemble the original list of mappings. With this change, a function's list of mappings is now attached to its MIR body, and survives intact even if individual statements are deleted by optimizations.
2023-10-03coverage: Let each coverage statement hold a vector of code regionsZalathar-1/+1
This makes it possible for a `StatementKind::Coverage` to hold more than one code region, but that capability is not yet used.
2023-08-01Make coverage counter IDs count up from 0, not 1Zalathar-1/+1
Operand types are now tracked explicitly, so there is no need to reserve ID 0 for the special always-zero counter. As part of the renumbering, this change fixes an off-by-one error in the way counters were counted by the `coverageinfo` query. As a result, functions should now have exactly the number of counters they actually need, instead of always having an extra counter that is never used.
2023-06-15Remove comments from mir-opt MIR dumpsBen Kimock-4/+4
2023-01-11Move /src/test to /testsAlbert Larsan-0/+13