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

89.31% regression in seidel-2d benchmark for rva22u64_v

Open lukel97 opened this issue 6 months ago • 4 comments

There's an 89.31% regression on the SingleSource/Benchmarks/Polybench/stencils/seidel-2d/seidel-2d benchmark: http://lnt.llvm.org/db_default/v4/nts/profile/1416/29/25

An initial look at the profile looks like we're now vectorizing a sum sequence, which causes a bunch of additional scalar stores for each element to be emitted that weren't originally present. I think this is SLP because the IV increment hasn't changed (it was 8 in the scalar loop, still 8 in the new version).

lukel97 avatar May 21 '26 11:05 lukel97

@llvm/issue-subscribers-backend-risc-v

Author: Luke Lau (lukel97)

There's an 89.31% regression on the [SingleSource/Benchmarks/Polybench/stencils/seidel-2d/seidel-2d](http://lnt.llvm.org/db_default/v4/nts/29/graph?test.1416=3) benchmark: http://lnt.llvm.org/db_default/v4/nts/profile/1416/29/25

An initial look at the profile looks like we're now vectorizing a sum sequence, which causes a bunch of additional scalar stores for each element to be emitted that weren't originally present. I think this is SLP because the IV increment hasn't changed (it was 8 in the scalar loop, still 8 in the new version).

Looks to be in FP reductions. Has been recent work there in SLP, I'll generate a reduced test.

bababuck avatar May 22 '26 04:05 bababuck

Looks to be duplicate of #199267

bababuck avatar May 25 '26 00:05 bababuck

Thanks for the fix @KavinTheG, can confirm the regression is resolved: http://lnt.llvm.org/db_default/v4/nts/graph?highlight_run=49&plot.0=2.1416.3

lukel97 avatar May 26 '26 08:05 lukel97