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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 5 08:27:38 PDT 2025


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

If we pass ShapeInfo also to `VisitCallInsts` in https://github.com/llvm/llvm-project/pull/142487, it seems simpler to just inline the code to handle abs/fabs at the call site?

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


More information about the llvm-commits mailing list