mirror of
https://github.com/Noratrieb/brainfuck.git
synced 2026-01-16 06:15:02 +01:00
bench setup that works
This commit is contained in:
parent
7b88c99039
commit
e82b14b09a
11 changed files with 302 additions and 19 deletions
|
|
@ -72,8 +72,9 @@ fn pass_find_set_null(ir: &mut Ir<'_>) {
|
|||
for stmt in ir {
|
||||
if let Stmt::Loop(body) = stmt {
|
||||
if let [Stmt::Sub(_)] = body.as_slice() {
|
||||
println!("REPLACE");
|
||||
*stmt = Stmt::SetNull;
|
||||
} else {
|
||||
pass_find_set_null(body);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue