From 1e59fa2bae4cb9c19b6711397a57b329ca652362 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Wed, 23 Oct 2024 09:53:44 -0400 Subject: YJIT: Count compiled_branch_count when branch is finalized [ci skip] --- yjit/src/core.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yjit/src/core.rs b/yjit/src/core.rs index ef91638ca6..f1e1c1d9a3 100644 --- a/yjit/src/core.rs +++ b/yjit/src/core.rs @@ -1594,6 +1594,7 @@ impl PendingBranch { } branch.assert_layout(); + incr_counter!(compiled_branch_count); branchref } @@ -3450,8 +3451,6 @@ fn new_pending_branch(jit: &mut JITState, gen_fn: BranchGenFn) -> PendingBranchR targets: [Cell::new(None), Cell::new(None)], }); - incr_counter!(compiled_branch_count); // TODO not true. count at finalize time - // Add to the list of outgoing branches for the block jit.queue_outgoing_branch(branch.clone()); -- cgit v1.2.3