Skip to content

Commit 8a181e4

Browse files
author
AztecBot
committed
feat: swap endianness in-place in keccak implementation (noir-lang/noir#6128)
feat: (LSP) remove unused imports (noir-lang/noir#6129) fix: handle parenthesized expressions in array length (noir-lang/noir#6132) chore: remove bubble_up_constrains (noir-lang/noir#6127) fix: Consider constants as used values to keep their rc ops (noir-lang/noir#6122)
2 parents d0d36c2 + 8fc8279 commit 8a181e4

4 files changed

Lines changed: 2 additions & 608 deletions

File tree

noir/noir-repo/compiler/noirc_evaluator/src/ssa/opt/mem2reg.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,7 @@ impl<'f> PerFunctionContext<'f> {
615615

616616
fn reduce_load_result_count(&mut self, value: ValueId) {
617617
if let Some(context) = self.load_results.get_mut(&value) {
618-
// TODO this was saturating https://github.com/noir-lang/noir/issues/6124
619-
context.uses = context.uses.wrapping_sub(1);
618+
context.uses = context.uses.saturating_sub(1);
620619
}
621620
}
622621

@@ -744,8 +743,7 @@ impl<'f> PerFunctionContext<'f> {
744743
if all_loads_removed && !store_alias_used {
745744
self.instructions_to_remove.insert(*store_instruction);
746745
if let Some((_, counter)) = remaining_last_stores.get_mut(store_address) {
747-
// TODO this was saturating https://github.com/noir-lang/noir/issues/6124
748-
*counter = counter.wrapping_sub(1);
746+
*counter = counter.saturating_sub(1);
749747
}
750748
} else if let Some((_, counter)) = remaining_last_stores.get_mut(store_address) {
751749
*counter += 1;

noir/noir-repo/test_programs/execution_success/verify_honk_proof/Nargo.toml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)