On Wednesday, 11 December 2013 at 16:40:48 UTC, Joseph Rushton Wakeling wrote:
[* If I recall right, it's achievable by special-casing iota when the increment is 1, but don't quote me on that.]

That shouldn't be necessary if the iota operations are inlined (which, if their not, is a much greater concern!). The increment is then known to be a particular compile-time constant and code generated appropriately.

Also, on x86 the gcc and llvm backends both prefer to use add 1 instead of inc, so you wouldn't even expect to see any difference at that level.

Reply via email to