From 846a24af0c3ed5cc1d35d0630b8fbe3faca33b8a Mon Sep 17 00:00:00 2001 From: Tom French <15848336+TomAFrench@users.noreply.github.com> Date: Thu, 9 Feb 2023 12:01:00 +0000 Subject: [PATCH] chore: fix spellcheck (#784) --- crates/noirc_evaluator/src/ssa/conditional.rs | 4 ++-- crates/noirc_evaluator/src/ssa/context.rs | 4 ++-- cspell.json | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/crates/noirc_evaluator/src/ssa/conditional.rs b/crates/noirc_evaluator/src/ssa/conditional.rs index 1dcd2a43847..1479a2487ff 100644 --- a/crates/noirc_evaluator/src/ssa/conditional.rs +++ b/crates/noirc_evaluator/src/ssa/conditional.rs @@ -376,8 +376,8 @@ impl DecisionTree { let mut modified = false; super::optimizations::cse_block(ctx, left, &mut merged_ins, &mut modified)?; if modified { - // a second round is necessary when the synchronisation optimise function calls between the two branches - // in that case, the first cse update the result instructions to the same call + // A second round is necessary when the synchronization optimizes function calls between the two branches. + // In that case, the first cse updates the result instructions to the same call and then // the second cse can (and must) then simplify identical result instructions. super::optimizations::cse_block(ctx, left, &mut merged_ins, &mut modified)?; } diff --git a/crates/noirc_evaluator/src/ssa/context.rs b/crates/noirc_evaluator/src/ssa/context.rs index ff28f2d591d..0e70ba69ad5 100644 --- a/crates/noirc_evaluator/src/ssa/context.rs +++ b/crates/noirc_evaluator/src/ssa/context.rs @@ -702,8 +702,8 @@ impl SsaContext { //Optimization block::compute_dom(self); optimizations::full_cse(self, self.first_block, false)?; - // the second cse is recommended because of opportunities occuring from the first one - // we could use an optimisation level that will run more cse pass + // The second cse is recommended because of opportunities occurring from the first one + // we could use an optimization level that will run more cse pass optimizations::full_cse(self, self.first_block, false)?; //flattening self.log(enable_logging, "\nCSE:", "\nunrolling:"); diff --git a/cspell.json b/cspell.json index 3fe9b47540f..20750af1753 100644 --- a/cspell.json +++ b/cspell.json @@ -14,12 +14,14 @@ "desugared", "forall", "foralls", + "Guillaume", "higher-kinded", "Hindley-Milner", "idents", "impls", "injective", "interner", + "intrinsics", "krate", "lvalue", "merkle",