logoalt Hacker News

ueckertoday at 11:42 AM1 replyview on HN

Maybe, but also irrelevant to the discussion because whether you write mat[b * A + a] by hand or mat[b][a] and let the compiler frontend expand then makes no difference to the optimizer.


Replies

fookertoday at 7:21 PM

You missed the point.

Those two representations are equivalent, yes. But that's not what flattening loops mean.

show 1 reply