We are always so picky about moving INTEGER out of loops, but apparently here we did not care yet.
Originally posted by @ben-schwen in #7598 (comment)
It might be possible to write a linter that detects some cases where the expression in accessor(expression) does not depend on the current loop iteration.