Skip to content

Commit 77b8b5f

Browse files
authored
Merge 4288fc6 into c52dc1c
2 parents c52dc1c + 4288fc6 commit 77b8b5f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

compiler/noirc_evaluator/src/brillig/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ impl std::ops::Index<FunctionId> for Brillig {
5252

5353
impl Ssa {
5454
/// Compile to brillig brillig functions and ACIR functions reachable from them
55+
#[tracing::instrument(level = "trace", skip_all)]
5556
pub(crate) fn to_brillig(&self, enable_debug_trace: bool) -> Brillig {
5657
// Collect all the function ids that are reachable from brillig
5758
// That means all the functions marked as brillig and ACIR functions called by them

compiler/noirc_evaluator/src/ssa.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,13 @@ pub(crate) fn optimize_into_acir(
127127
ssa.check_for_underconstrained_values()
128128
})
129129
};
130+
131+
drop(ssa_gen_span_guard);
132+
130133
let brillig = time("SSA to Brillig", options.print_codegen_timings, || {
131134
ssa.to_brillig(options.enable_brillig_logging)
132135
});
133136

134-
drop(ssa_gen_span_guard);
135-
136137
let artifacts = time("SSA to ACIR", options.print_codegen_timings, || {
137138
ssa.into_acir(&brillig, options.expression_width)
138139
})?;

0 commit comments

Comments
 (0)