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

Quinn Dawkins llvmlistbot at llvm.org
Tue Nov 26 07:01:03 PST 2024


================
@@ -595,7 +595,10 @@ AffineMap inverseAndBroadcastProjectedPermutation(AffineMap map);
 /// potentially empty maps. Assumes each of the underlying map has 0 symbols.
 /// The resulting map has a number of dims equal to the max of `maps`' dims and
 /// the concatenated results as its results.
-/// Returns an empty map if all input `maps` are empty.
+///
+/// This method asserts when `maps` is empty.
+/// TODO: this should return an empty map when `maps` is empty but there is no
+/// way to get the MLIRContext needed to construct it.
----------------
qedawkins wrote:

Can we add `MLIRContext` as an argument?

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


More information about the Mlir-commits mailing list