Mel-Chen wrote: Could you first add a few lit test cases for interleaved accesses with factor 5 as a pre-commit? Also, I suggest making the change in getInterleavedMemoryOpCost, which might be a more appropriate place. https://github.com/llvm/llvm-project/pull/148808