[llvm] [Matrix] Propagate shape information through PHI insts (PR #141681)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 16 04:02:56 PDT 2025


================
@@ -414,6 +416,33 @@ class LowerMatrixIntrinsics {
         addVector(PoisonValue::get(FixedVectorType::get(
             EltTy, isColumnMajor() ? NumRows : NumColumns)));
     }
+    MatrixTy(ConstantData *Constant, const ShapeInfo &SI)
+        : IsColumnMajor(SI.IsColumnMajor) {
+      Type *EltTy = cast<VectorType>(Constant->getType())->getElementType();
----------------
fhahn wrote:

Would that also help in other places where we have constant operands? If so, could be split off as well?

https://github.com/llvm/llvm-project/pull/141681


More information about the llvm-commits mailing list