You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yorickpeterse opened this issue
Feb 13, 2024
· 0 comments
Labels
compilerChanges related to the compilerfeatureNew things to add to Inko, such as a new standard library moduleperformanceChanges related to improving performance
The DefineConstants MIR pass applies constant folding to constant values, such that e.g. let A = 10 + 5 is turned into let A = 15. We should extract this logic and use it for a constant folding pass that operates on expressions (= the contents of method bodies). This way expressions such as let a = 'foo' + 'bar' are turned into let a = 'foobar'.
Related work
No response
The text was updated successfully, but these errors were encountered:
compilerChanges related to the compilerfeatureNew things to add to Inko, such as a new standard library moduleperformanceChanges related to improving performance
Description
The
DefineConstants
MIR pass applies constant folding to constant values, such that e.g.let A = 10 + 5
is turned intolet A = 15
. We should extract this logic and use it for a constant folding pass that operates on expressions (= the contents of method bodies). This way expressions such aslet a = 'foo' + 'bar'
are turned intolet a = 'foobar'
.Related work
No response
The text was updated successfully, but these errors were encountered: