diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2025-01-22 13:55:08 +1100 | 
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2025-02-06 21:44:31 +1100 | 
| commit | 20d051ec870739c8f263e5f6f581ca24a5dd56fd (patch) | |
| tree | ec3355dad17588460d8ba1e0dd45160b97c13117 /tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff | |
| parent | ee7dc06cf181c073b1040669a40bc325d00f8c6d (diff) | |
| download | rust-20d051ec870739c8f263e5f6f581ca24a5dd56fd.tar.gz rust-20d051ec870739c8f263e5f6f581ca24a5dd56fd.zip | |
coverage: Defer part of counter-creation until codegen
Diffstat (limited to 'tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff')
| -rw-r--r-- | tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff b/tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff index fe74ad24e91..b166d79a412 100644 --- a/tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff +++ b/tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff @@ -8,7 +8,6 @@ let mut _3: !; + coverage body span: $DIR/instrument_coverage.rs:14:11: 20:2 (#0) -+ coverage ExpressionId(0) => Expression { lhs: Counter(1), op: Subtract, rhs: Counter(0) }; + coverage Code { bcb: bcb0 } => $DIR/instrument_coverage.rs:14:1: 14:11 (#0); + coverage Code { bcb: bcb1 } => $DIR/instrument_coverage.rs:16:12: 16:17 (#0); + coverage Code { bcb: bcb2 } => $DIR/instrument_coverage.rs:17:13: 17:18 (#0); @@ -16,12 +15,12 @@ + coverage Code { bcb: bcb2 } => $DIR/instrument_coverage.rs:20:2: 20:2 (#0); + bb0: { -+ Coverage::CounterIncrement(0); ++ Coverage::VirtualCounter(bcb0); goto -> bb1; } bb1: { -+ Coverage::CounterIncrement(1); ++ Coverage::VirtualCounter(bcb1); falseUnwind -> [real: bb2, unwind: bb6]; } @@ -35,13 +34,14 @@ } bb4: { ++ Coverage::VirtualCounter(bcb2); _0 = const (); StorageDead(_2); return; } bb5: { -+ Coverage::ExpressionUsed(0); ++ Coverage::VirtualCounter(bcb3); _1 = const (); StorageDead(_2); goto -> bb1; | 
