Code such as
should be optimized to
or similar, depending what is faster. The main benefit would be that constant folding will hit in the latter case, if followed by, say, add.
Consider an example similar to that from the readme as of time of writing:
Currently, this wouldn't be constant folded to push 84, however this optimization would allow folding like that.
Code such as
should be optimized to
or similar, depending what is faster. The main benefit would be that constant folding will hit in the latter case, if followed by, say,
add.Consider an example similar to that from the readme as of time of writing:
Currently, this wouldn't be constant folded to
push 84, however this optimization would allow folding like that.