Open tekknolagi opened 7 years ago
I'd suggest not doing any (except super trivial ones) optimisations at the beginning. We should however build the compiler in a way that would allow an arbitrary amount of passes of any kind later on.
I'm thinking of things like Constant-folding, dead-code elimination, function inlining etc.
I like the arbitrary passes compiler, and I like not doing any optimization right now.
We need to decide how we want to do that, what intermediate transforms we want to have, etc.