Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Apr 17, 2024
1 parent ff730f3 commit 2cd6a75
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Optimisations:
finish executing loops in order to skip runtime execution. We can now
partly execute loops at runtime. This is a big help to many programs
with a large outer loop, previously they did not benefit from compile
time exeuction.
time execution.

Compiler performance:

Expand Down
2 changes: 1 addition & 1 deletion docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ Many! Some noteworthy examples I've seen are:
* https://github.com/stedolan/bf.sed (simple optimisations, but
compiles directly to asm)
* https://github.com/matslina/bfoptimization
* [Platonic Ideal Brainfuck Interpeter](http://catseye.tc/node/pibfi)
* [Platonic Ideal Brainfuck Interpreter](http://catseye.tc/node/pibfi)
[(src)](https://github.com/catseye/pibfi) (even has a profiler!)
* https://github.com/rmmh/beefit (uses LuaJIT)
4 changes: 2 additions & 2 deletions src/llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ unsafe fn compile_multiply_move(
multiply_body,
);

// In the multiply body, do the mulitply
// In the multiply body, do the multiply
builder.position_at_end(multiply_body);

// Zero the current cell.
Expand Down Expand Up @@ -730,7 +730,7 @@ unsafe fn compile_loop(
&mut *loop_after
}

/// Append LLVM IR instructions to bb acording to the BF instruction
/// Append LLVM IR instructions to bb according to the BF instruction
/// passed in.
unsafe fn compile_instr(
instr: &AstNode,
Expand Down
2 changes: 1 addition & 1 deletion src/peephole.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,7 @@ mod soundness_tests {
fn combine_before_read_is_sound() {
fn is_sound(instrs: Vec<AstNode>, read_value: Option<i8>) -> TestResult {
// remove_read_clobber can change the value of cells when we
// reach a runtime value. Conside `+,` to `,` -- the `,`
// reach a runtime value. Consider `+,` to `,` -- the `,`
// overwrites the cell, but when we reach the runtime value
// the cells are different.
transform_is_sound(instrs, remove_read_clobber, false, read_value)
Expand Down

0 comments on commit 2cd6a75

Please sign in to comment.