[Mlir-commits] [mlir] [MLIR][Linalg] Fix linalg crash during elementwise op fusion (PR #117667)

Quinn Dawkins llvmlistbot at llvm.org
Tue Nov 26 11:41:43 PST 2024


================
@@ -88,12 +88,18 @@ static bool isOpOperandCanBeDroppedAfterFusedLinalgs(
       indexingMaps.push_back(op.getMatchingIndexingMap(&opOperand));
     }
   }
+  if (indexingMaps.empty()) {
+    // If there are no indexing maps, the operand can only be dropped
+    // if neither ops op have loops.
----------------
qedawkins wrote:

```suggestion
    // if neither op has loops.
```

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


More information about the Mlir-commits mailing list