Skip to content

Commit

Permalink
feat: swap endianness in-place in keccak implementation (noir-lang/no…
Browse files Browse the repository at this point in the history
…ir#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)
  • Loading branch information
AztecBot committed Sep 24, 2024
2 parents d0d36c2 + 8fc8279 commit 8a181e4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 608 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,7 @@ impl<'f> PerFunctionContext<'f> {

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

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

This file was deleted.

Loading

0 comments on commit 8a181e4

Please sign in to comment.