[mlir][test] Fix how the number of flops is calculated
authorAndrzej Warzynski <andrzej.warzynski@gmail.com>
Mon, 21 Nov 2022 07:15:26 +0000 (12:45 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Mon, 21 Nov 2022 08:10:24 +0000 (13:40 +0530)
commitcae13ff416ec02f58164e76230371edc5e41be7f
tree287459ccaa18ad5c144d506fd4c1e11ac60b41bd
parent9a78d06f84f5b6c810613e1fef44101ccc38b553
[mlir][test] Fix how the number of flops is calculated

Make sure that the number of repetitions is correctly incorporated when
calculating the number of floating point operations.

Reviewed By: bondhugula

Differential Revision: https://reviews.llvm.org/D138382
mlir/test/mlir-cpu-runner/sgemm-naive-codegen.mlir