[Matrix] Refine cost estimate for dot-product.
authorFlorian Hahn <flo@fhahn.com>
Fri, 14 Apr 2023 10:35:01 +0000 (11:35 +0100)
committerFlorian Hahn <flo@fhahn.com>
Fri, 14 Apr 2023 10:35:01 +0000 (11:35 +0100)
commit98e50881e91f2d01563282add0b9bb07992a2e0f
treed6b975dfe821f166063967eac17675e842d368fd
parent7025c2f2263eee4157df3300549144414a21361a
[Matrix] Refine cost estimate for dot-product.

Adjust lowerDotProduct cost estimate to include the cost benefits of:
 * emitting a wide load
 * emitting a wide multiply.

Reviewed By: thegameg

Differential Revision: https://reviews.llvm.org/D147330
llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
llvm/test/Transforms/LowerMatrixIntrinsics/dot-product-float.ll
llvm/test/Transforms/LowerMatrixIntrinsics/dot-product-int.ll