llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Possible regression on LSR

Open amd-eochoalo opened this issue 6 months ago • 2 comments

Hello,

I believe I found a possible regression introduced by #184138. The regression shows up in matrix matrix multiplication. I have some high level benchmarks that track the performance of matrix multiplication for two matrices with of size 8192x8192 and with f32 values.

After PR #184138, I see a 1.81x slowdown in multiplying two matrices of size 8192x8192 for gfx1201.

I am attaching the output of llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1201 -print-before=loop-reduce -print-after=loop-reduce for both, what exists on main (referencing 76cdf6012b883529e3d608ed4e30d622ba43e10c) and applying a revert of #184138.

main.txt

revert.txt

amd-eochoalo avatar May 13 '26 19:05 amd-eochoalo

@llvm/issue-subscribers-backend-amdgpu

Author: Erick Ochoa Lopez (amd-eochoalo)

Hello,

I believe I found a possible regression introduced by #184138. The regression shows up in matrix matrix multiplication. I have some high level benchmarks that track the performance of matrix multiplication for two matrices with of size 8192x8192 and with f32 values.

After PR #184138, I see a 1.81x slowdown in multiplying two matrices of size 8192x8192 for gfx1201.

I am attaching the output of llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1201 -print-before=loop-reduce -print-after=loop-reduce for both, what exists on main (referencing 76cdf6012b883529e3d608ed4e30d622ba43e10c) and applying a revert of #184138.

main.txt

revert.txt

Can you provide a reproduce, like .c or .ll file. The main.txt is not complete.

hstk30-hw avatar May 14 '26 01:05 hstk30-hw