[Mlir-commits] [mlir] [mlir][sparse] code cleanup using the assumption that dim2lvl maps ar… (PR #72894)
Aart Bik
llvmlistbot at llvm.org
Mon Nov 20 09:43:14 PST 2023
================
@@ -745,8 +745,13 @@ class SparseTensorAllocConverter
const auto resType = getSparseTensorType(op);
if (!resType.hasEncoding())
return failure();
- Location loc = op.getLoc();
+ if (!resType.isIdentity()) {
----------------
aartbik wrote:
does copy rely on this as well? otherwise, we can move it a little down?
https://github.com/llvm/llvm-project/pull/72894
More information about the Mlir-commits
mailing list