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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 2 07:15:35 PDT 2025


================
@@ -561,6 +590,27 @@ class LowerMatrixIntrinsics {
       MatrixVal = M.embedInVector(Builder);
     }
 
+    // If it's a PHI, split it now. We'll take care of fixing up the operands
+    // later once we're in VisitPHI.
+    if (auto *PHI = dyn_cast<PHINode>(MatrixVal)) {
----------------
fhahn wrote:

is there a reason we cannot handle phis like we handle other instructions and need to handle them here?

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


More information about the llvm-commits mailing list