[Mlir-commits] [mlir] 0449b6a - Apply clang-tidy fixes for llvm-else-after-return in SparseTensorRewriting.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Wed Sep 7 12:31:22 PDT 2022
Author: Mehdi Amini
Date: 2022-09-07T19:30:54Z
New Revision: 0449b6a07af2a9cd8c4e7984e86c5d6f40e1a15b
URL: https://github.com/llvm/llvm-project/commit/0449b6a07af2a9cd8c4e7984e86c5d6f40e1a15b
DIFF: https://github.com/llvm/llvm-project/commit/0449b6a07af2a9cd8c4e7984e86c5d6f40e1a15b.diff
LOG: Apply clang-tidy fixes for llvm-else-after-return in SparseTensorRewriting.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp
index a8c08831e2b4..ca19cc4357c5 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp
@@ -270,7 +270,8 @@ struct ReshapeRewriter : public OpRewritePattern<ReshapeOp> {
// All other cases are handled elsewhere.
if (encDst && encSrc) {
return failure();
- } else if (encSrc) {
+ }
+ if (encSrc) {
RankedTensorType rtp =
op.getSrc().getType().template cast<RankedTensorType>();
auto denseTp =
More information about the Mlir-commits
mailing list