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
At the moment, WordLang is the last language with cutsets, i.e. annotations which state that only local variables in this set are to survive this line in the code. These annotations are useful when optimising because they give optimisations the freedom to write anything to any other value without danger of having some effect on code elsewhere by such update to local variables.
With the cutset annotation, an optimisation can locally make the decision to that it's safe to assign to v5 since the cutset at the end ensures that its value never makes it past the last line in the example.
This issue is about adding cutset annotations to StackLang and LabLang so that future peephole optimisers at these levels can make use of new temporaries.
The text was updated successfully, but these errors were encountered:
At the moment, WordLang is the last language with cutsets, i.e. annotations which state that only local variables in this set are to survive this line in the code. These annotations are useful when optimising because they give optimisations the freedom to write anything to any other value without danger of having some effect on code elsewhere by such update to local variables.
Example:
With the cutset annotation, an optimisation can locally make the decision to that it's safe to assign to v5 since the cutset at the end ensures that its value never makes it past the last line in the example.
This issue is about adding cutset annotations to StackLang and LabLang so that future peephole optimisers at these levels can make use of new temporaries.
The text was updated successfully, but these errors were encountered: