Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: MaheshRavishankar <[email protected]>
  • Loading branch information
MaheshRavishankar committed Aug 26, 2024
1 parent bd78854 commit 60b65f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,13 @@ static LogicalResult reduceDefiningOp(PatternRewriter &rewriter, Value input) {
options.controlFn = [](Operation *op) -> SmallVector<unsigned> {
return {0};
};
return linalg::dropUnitDims(rewriter, producer, options);
FailureOr<linalg::DropUnitDimsResult> result =
linalg::dropUnitDims(rewriter, producer, options);
if (failed(result)) {
return failure();
}
rewriter.replaceOp(producer, result->replacements);
return success();
}

/// Drops the first element from all the tile sizes list. The first element is
Expand Down
2 changes: 1 addition & 1 deletion third_party/llvm-project
Submodule llvm-project updated 319 files

0 comments on commit 60b65f3

Please sign in to comment.