diff --git a/compiler/noirc_evaluator/src/ssa/opt/die.rs b/compiler/noirc_evaluator/src/ssa/opt/die.rs index 584e852e01b..3d1be5578ae 100644 --- a/compiler/noirc_evaluator/src/ssa/opt/die.rs +++ b/compiler/noirc_evaluator/src/ssa/opt/die.rs @@ -108,7 +108,7 @@ impl Context { let instructions_len = block.instructions().len(); - // let mut rc_tracker = RcTracker::default(); + let mut rc_tracker = RcTracker::default(); // Indexes of instructions that might be out of bounds. // We'll remove those, but before that we'll insert bounds checks for them. @@ -138,11 +138,11 @@ impl Context { } } - // rc_tracker.track_inc_rcs_to_remove(*instruction_id, function); + rc_tracker.track_inc_rcs_to_remove(*instruction_id, function); } // self.instructions_to_remove.extend(rc_tracker.get_non_mutated_arrays()); - // self.instructions_to_remove.extend(rc_tracker.rc_pairs_to_remove); + self.instructions_to_remove.extend(rc_tracker.rc_pairs_to_remove); // If there are some instructions that might trigger an out of bounds error, // first add constrain checks. Then run the DIE pass again, which will remove those