bench setup that works

This commit is contained in:
nora 2022-04-12 21:20:16 +02:00
parent 7b88c99039
commit e82b14b09a
11 changed files with 302 additions and 19 deletions

View file

@ -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);
}
}
}