Apply clang-tidy fixes for llvm-else-after-return in SparseTensorCodegen.cpp (NFC)

This commit is contained in:
Mehdi Amini
2022-11-14 06:37:42 +00:00
parent 5ed6dc4681
commit ef99c27d3b

View File

@@ -269,7 +269,8 @@ static void allocSchemeForRank(OpBuilder &builder, Location loc,
Value ptrZero = constantZero(builder, loc, ptrType);
createPushback(builder, loc, fields, field, ptrZero, linear);
return;
} else if (isSingletonDim(rtp, r)) {
}
if (isSingletonDim(rtp, r)) {
return; // nothing to do
} else {
// Keep compounding the size, but nothing needs to be initialized