This saves one ARM instruction (`mov x1, x4`) when the array is out of bounds: https://godbolt.org/z/7Gb7so4Ez Because the side effects of position++ have to happen even if the array overflows. It's fairly minor. Probably won't make a big difference. This is a partial roll forward of cl/673588324. PiperOrigin-RevId: 681696805pull/18600/head
parent
dd78f0ac12
commit
25e50caa3e
1 changed files with 4 additions and 1 deletions
Loading…
Reference in new issue