diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2025-01-25 18:41:35 +1100 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2025-02-06 21:44:31 +1100 |
| commit | bd855b6c9efc25a9f1eba3febd3d04f1b23a1ec5 (patch) | |
| tree | 01b78255faf2de8838d9b8c1b4e756035b16f6ec /compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs | |
| parent | bf1f254b13d09aedfd8b44611f39736c32d5d0f6 (diff) | |
| download | rust-bd855b6c9efc25a9f1eba3febd3d04f1b23a1ec5.tar.gz rust-bd855b6c9efc25a9f1eba3febd3d04f1b23a1ec5.zip | |
coverage: Remove the old code for simplifying counters after MIR opts
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs b/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs index e404db5e196..ea7f581a3cb 100644 --- a/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs +++ b/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs @@ -163,11 +163,9 @@ impl<'tcx> CoverageInfoBuilderMethods<'tcx> for Builder<'_, '_, 'tcx> { CoverageKind::VirtualCounter { bcb } if let Some(&id) = ids_info.phys_counter_for_node.get(&bcb) => { - let num_counters = ids_info.num_counters_after_mir_opts(); - let fn_name = bx.get_pgo_func_name_var(instance); let hash = bx.const_u64(function_coverage_info.function_source_hash); - let num_counters = bx.const_u32(num_counters); + let num_counters = bx.const_u32(ids_info.num_counters); let index = bx.const_u32(id.as_u32()); debug!( "codegen intrinsic instrprof.increment(fn_name={:?}, hash={:?}, num_counters={:?}, index={:?})", |
