[Matrix] Fix IsSupported check in lowerDotProduct.
authorFlorian Hahn <flo@fhahn.com>
Thu, 13 Apr 2023 18:00:30 +0000 (19:00 +0100)
committerFlorian Hahn <flo@fhahn.com>
Thu, 13 Apr 2023 18:00:30 +0000 (19:00 +0100)
commite6ab86a88796667ede83bf839a8e1bdb103d4a80
tree452b1447d9def399920fd3f6279a08a76e67ca77
parent3248ca0da01c73711896ddc86ae8b045b86726c8
[Matrix] Fix IsSupported check in lowerDotProduct.

The check incorrectly checks the RHS while LHS is transformed later.
Update to check LHS, which fixes a crash in the newly added test cases.
llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
llvm/test/Transforms/LowerMatrixIntrinsics/dot-product-int.ll