summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Bernstein <tekknolagi@gmail.com>2026-04-10 17:09:30 -0400
committerGitHub <noreply@github.com>2026-04-10 17:09:30 -0400
commit044a43f42b6170488d0f3ab509a2a4d564eb8a0c (patch)
tree35c69f4777a47b3fb33fcc2dad141a3224ba826a
parent4978bfb2109bdb322e40f50721c8393f1df5e515 (diff)
ZJIT: Trace infer_types as a sub-pass of other passes (#16714)
This helps us see how much time it takes in compiler tracing.
-rw-r--r--zjit/src/hir.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/zjit/src/hir.rs b/zjit/src/hir.rs
index 10c2f461e3..786a994d8b 100644
--- a/zjit/src/hir.rs
+++ b/zjit/src/hir.rs
@@ -4328,7 +4328,7 @@ impl Function {
}
}
}
- self.infer_types();
+ crate::stats::trace_compile_phase("infer_types", || self.infer_types());
}
fn inline(&mut self) {
@@ -4382,7 +4382,7 @@ impl Function {
}
}
}
- self.infer_types();
+ crate::stats::trace_compile_phase("infer_types", || self.infer_types());
}
fn load_shape(&mut self, block: BlockId, recv: InsnId) -> InsnId {
@@ -4670,7 +4670,7 @@ impl Function {
}
}
}
- self.infer_types();
+ crate::stats::trace_compile_phase("infer_types", || self.infer_types());
}
fn gen_patch_points_for_optimized_ccall(&mut self, block: BlockId, recv_class: VALUE, method_id: ID, cme: *const rb_callable_method_entry_struct, state: InsnId) {
@@ -4989,7 +4989,7 @@ impl Function {
self.push_insn_id(block, insn_id);
}
}
- self.infer_types();
+ crate::stats::trace_compile_phase("infer_types", || self.infer_types());
}
/// Convert `Send` instructions with no profile data into `SideExit` with recompile info.
@@ -5488,7 +5488,7 @@ impl Function {
changed = true;
}
if changed {
- self.infer_types();
+ crate::stats::trace_compile_phase("infer_types", || self.infer_types());
}
}