[llvm] [Matrix][IR] Cap stride bitwidth at 64 (PR #163729)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 17 01:40:59 PDT 2025
================
@@ -6479,9 +6479,12 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) {
NumRows->getZExtValue() * NumColumns->getZExtValue(),
"Result of a matrix operation does not fit in the returned vector!");
- if (Stride)
+ if (Stride) {
+ Check(Stride->getBitWidth() <= 64, "Stride bitwidth cannot exceed 64!",
----------------
fhahn wrote:
Yes, in practice on targets with 32 bit index width (or lower), it may be smaller, matching the index width
https://github.com/llvm/llvm-project/pull/163729
More information about the llvm-commits
mailing list