Skip to content

Commit 3f26d56

Browse files
committed
[MLIR] Apply clang-tidy fixes for llvm-else-after-return in SuperVectorize.cpp (NFC)
1 parent 1fb2ab3 commit 3f26d56

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

mlir/lib/Dialect/Affine/Transforms/SuperVectorize.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -978,12 +978,11 @@ static Operation *vectorizeAffineApplyOp(AffineApplyOp applyOp,
978978
LLVM_DEBUG(
979979
dbgs() << "\n[early-vect]+++++ affine.apply on vector operand\n");
980980
return nullptr;
981-
} else {
982-
Value updatedOperand = state.valueScalarReplacement.lookupOrNull(operand);
983-
if (!updatedOperand)
984-
updatedOperand = operand;
985-
updatedOperands.push_back(updatedOperand);
986981
}
982+
Value updatedOperand = state.valueScalarReplacement.lookupOrNull(operand);
983+
if (!updatedOperand)
984+
updatedOperand = operand;
985+
updatedOperands.push_back(updatedOperand);
987986
}
988987

989988
auto newApplyOp = AffineApplyOp::create(

0 commit comments

Comments
 (0)