Skip to content

Commit

Permalink
chore: fix spellcheck (#784)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Feb 9, 2023
1 parent 615357a commit 846a24a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/noirc_evaluator/src/ssa/conditional.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
}
Expand Down
4 changes: 2 additions & 2 deletions crates/noirc_evaluator/src/ssa/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:");
Expand Down
2 changes: 2 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@
"desugared",
"forall",
"foralls",
"Guillaume",
"higher-kinded",
"Hindley-Milner",
"idents",
"impls",
"injective",
"interner",
"intrinsics",
"krate",
"lvalue",
"merkle",
Expand Down

0 comments on commit 846a24a

Please sign in to comment.