Teach the peepholer to fold unary operations on constants.
Afterwards, -0.5 loads in a single step and no longer requires a runtime UNARY_NEGATIVE operation.
Showing
Please
register
or
sign in
to comment
Afterwards, -0.5 loads in a single step and no longer requires a runtime UNARY_NEGATIVE operation.