Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm committed Jan 22, 2025
1 parent 69dff3f commit ed06f19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/noirc_evaluator/src/brillig/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ impl Ssa {
return brillig;
}

// Globals are computed once at compile time and shared across all functions,
// thus we can just fetch globals from the main function.
let globals = (*self.functions[&self.main_id].dfg.globals).clone();
let (artifact, brillig_globals, globals_size) =
convert_ssa_globals(enable_debug_trace, globals, &self.used_global_values);
Expand Down

0 comments on commit ed06f19

Please sign in to comment.