Skip to content

Commit

Permalink
Fixes for LLVM change.
Browse files Browse the repository at this point in the history
Signed-off-by: MaheshRavishankar <[email protected]>
  • Loading branch information
MaheshRavishankar committed Aug 22, 2024
1 parent e08e840 commit 75dbd33
Showing 1 changed file with 7 additions and 1 deletion.
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

0 comments on commit 75dbd33

Please sign in to comment.