Skip to content

Commit cdd7464

Browse files
committed
rebasing
1 parent fe8b153 commit cdd7464

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ static uint64_t getTrailingNonUnitLoopDimIdx(LinalgOp linalgOp) {
864864
"For statically shaped Linalg Ops, only one "
865865
"non-unit loop dim is expected");
866866

867-
size_t idx = loopRanges.size() - 1;
867+
ssize_t idx = loopRanges.size() - 1;
868868
for (; idx >= 0; idx--)
869869
if (loopRanges[idx] != 1)
870870
break;

mlir/lib/Transforms/Utils/DialectConversion.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,9 +1045,8 @@ UnresolvedMaterializationRewrite::UnresolvedMaterializationRewrite(
10451045
const TypeConverter *converter, MaterializationKind kind, Type originalType)
10461046
: OperationRewrite(Kind::UnresolvedMaterialization, rewriterImpl, op),
10471047
converterAndKind(converter, kind), originalType(originalType) {
1048-
assert(!originalType ||
1049-
kind == MaterializationKind::Target &&
1050-
"original type is valid only for target materializations");
1048+
assert((!originalType || kind == MaterializationKind::Target) &&
1049+
"original type is valid only for target materializations");
10511050
rewriterImpl.unresolvedMaterializations[op] = this;
10521051
}
10531052

@@ -1337,9 +1336,8 @@ Value ConversionPatternRewriterImpl::buildUnresolvedMaterialization(
13371336
MaterializationKind kind, OpBuilder::InsertPoint ip, Location loc,
13381337
ValueRange inputs, Type outputType, Type originalType,
13391338
const TypeConverter *converter) {
1340-
assert(!originalType ||
1341-
kind == MaterializationKind::Target &&
1342-
"original type is valid only for target materializations");
1339+
assert((!originalType || kind == MaterializationKind::Target) &&
1340+
"original type is valid only for target materializations");
13431341

13441342
// Avoid materializing an unnecessary cast.
13451343
if (inputs.size() == 1 && inputs.front().getType() == outputType)

0 commit comments

Comments
 (0)