[Mlir-commits] [mlir] [mlir][sparse] implement loose-compressed/2:4 on direct IR codegen path (PR #71461)
Peiming Liu
llvmlistbot at llvm.org
Mon Nov 6 16:45:25 PST 2023
================
@@ -817,19 +818,18 @@ class SparseTensorEmptyConverter : public OpConversionPattern<tensor::EmptyOp> {
return failure();
// Construct allocation for each field.
- const Location loc = op.getLoc();
- const Value sizeHint; // none
+ Location loc = op.getLoc();
+ Value sizeHint; // none
const ValueRange dynSizes = adaptor.getDynamicSizes();
const size_t found = dynSizes.size();
const int64_t expected = resType.getNumDynamicDims();
if (found != static_cast<size_t>(expected))
- return rewriter.notifyMatchFailure(
- op, llvm::formatv(
- "Got wrong number of dynamic sizes: Found={0}, Expected={1}",
- found, expected));
+ return rewriter.notifyMatchFailure(op,
+ "Got wrong number of dynamic sizes");
----------------
PeimingLiu wrote:
nit: Do we really need this?
https://github.com/llvm/llvm-project/pull/71461
More information about the Mlir-commits
mailing list