[PATCH] D102931: [Matrix] Bail out early if there are no matrix intrinsics.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 22 03:38:08 PDT 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa6de8d95db48: [Matrix] Bail out early if there are no matrix intrinsics. (authored by fhahn).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102931/new/

https://reviews.llvm.org/D102931

Files:
  llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp


Index: llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
+++ llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
@@ -677,6 +677,10 @@
         }
       }
 
+    // Avoid unnecessary work if there are no matrix intrinsics in the function.
+    if (WorkList.empty())
+      return false;
+
     // Propagate shapes until nothing changes any longer.
     while (!WorkList.empty()) {
       WorkList = propagateShapeForward(WorkList);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102931.347189.patch
Type: text/x-patch
Size: 560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210522/ded76a7e/attachment.bin>


More information about the llvm-commits mailing list