[llvm] [Matrix] Propagate shape information through (f)abs insts (PR #141704)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 2 08:47:04 PDT 2025


================
@@ -2198,6 +2210,49 @@ class LowerMatrixIntrinsics {
     return true;
   }
 
+  /// Lower uniform shape intrinsics, if shape information is available.
+  bool VisitUniformIntrinsic(IntrinsicInst *Inst) {
+    auto I = ShapeMap.find(Inst);
+    if (I == ShapeMap.end())
----------------
fhahn wrote:

I think this check shouldn't be needed, we should only be calling this for instructions with shape-info. I put up https://github.com/llvm/llvm-project/pull/142416 to clean this up in the existing functions

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


More information about the llvm-commits mailing list