Cache Locality: The Core Benefit

The primary reason for loop interchange's effectiveness in matrix multiplication is improved data locality, ensuring the innermost loop accesses contiguous memory locations and significantly reducing cache misses, especially in row-major languages like C/C++.

Sources

Open the full topic