[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


================
@@ -1313,23 +1348,23 @@ class LowerMatrixIntrinsics {
 
   /// Lower a load instruction with shape information.
   MatrixTy LowerLoad(Instruction *Inst, Value *Ptr, MaybeAlign Align,
-                     Value *Stride, bool IsVolatile, ShapeInfo Shape) {
-    IRBuilder<> Builder(Inst);
+                     Value *Stride, bool IsVolatile, ShapeInfo Shape,
+                     IRBuilder<> &Builder) {
----------------
fhahn wrote:

This is NFC refactoring to avoid constructing the builder in multiple places, right? Would be good to split off

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


More information about the llvm-commits mailing list