On Mon Aug 14 16:34:02 2023 +0000, Jeffrey Smith wrote:
Running a mocked-up test on godbolt shows:
- clang results in the same assembly with or without the change.
- gcc also moves the calculation out of the inner loop (though the
changed code does result in slightly shorter assembly). So yeah, there is no meaningful gain here.
Thanks. Closing it then