issues
search
shfty-elysian
/
elysian-legacy
Field function compiler
0
stars
0
forks
source link
IR optimization
#66
Open
Shfty
opened
1 year ago
Shfty
commented
1 year ago
Strategies to reduce the amount of IR that needs to be interpreted
Pre-evaluate expressions comprised solely of literals
ex. Convert 1 / 2 into 0.5 to avoid a runtime divide
Inlining
ex. Replace variable bindings with their values to reduce IO overhead
Mainly relevant to entrypoint; may be better to hand-optimize codegen