cmd/compile: slicing can be improved on ARM #23006
Comments
Moving the bound check into the slice operation sounds hard to me, but the other part should probably be easier. Not sure if it's better to special-case the code generation within /cc @cherrymui @benshi001 |
Currently code is frozen, and only bug fix is allowed. We can try the optimization in go1.11. |
@benshi001 did you try this optimization? I think it can be beneficial for slides on Arm |
I have tried to optimize arm code with ADD.S/SUB.S, if both the flags and the result are further used. But unfortunately the go1 benchmark shows some regression, which I need more tuning work. |
Hello there @rasky @benshi001, we haven't covered ground on this issue for Go1.13 so perhaps shall we punt to Go1.14? |
It looks like it can be changed. Consider optimizing? |
This code:
generates this code on ARM:
but it could be optimized this way:
which is much shorter and faster.
The text was updated successfully, but these errors were encountered: