Just wonder why need both fir and ir? Why not to h...
# compiler
p
Just wonder why need both fir and ir? Why not to have only one single middle ir?
t
Granted I don't work on the compiler, but IR transforms are usually to make computations easier, so I'm assuming FIR makes parts of analysis and type checking easier, while IR makes codegen more straightforward since they are doing very different things