IR optimization

IR optimization currently very basic, in fact it probably doesn't even
improve performance measurably.
This commit is contained in:
r4
2021-12-25 23:01:18 +01:00
parent 850dafbbc9
commit cf93109f1e
3 changed files with 19 additions and 1 deletions

1
main.c
View File

@@ -167,6 +167,7 @@ int main(int argc, const char **argv) {
return 1;
}
toklist_term(&tokens);
optimize_ir(&ir);
if (opt_emit_ir)
print_ir(&ir, funcs);
/* run the IR */