Skip to content

Commit

Permalink
Apply clang-tidy fixes for llvm-else-after-return in DropUnitDims.cpp…
Browse files Browse the repository at this point in the history
… (NFC)
  • Loading branch information
joker-eph committed Jan 20, 2024
1 parent 3b61f5a commit f19f213
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlir/lib/Dialect/Linalg/Transforms/DropUnitDims.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,8 @@ LogicalResult linalg::dropUnitDims(RewriterBase &rewriter, GenericOp genericOp,
Type operandType = operand.get().getType();
if (auto memrefOperandType = dyn_cast_or_null<MemRefType>(operandType)) {
return memrefOperandType.getLayout().isIdentity();
} else if (auto tensorOperandType =
dyn_cast<RankedTensorType>(operandType)) {
}
if (auto tensorOperandType = dyn_cast<RankedTensorType>(operandType)) {
return tensorOperandType.getEncoding() == nullptr;
}
return false;
Expand Down

0 comments on commit f19f213

Please sign in to comment.