Skip to content

Commit 84d8042

Browse files
committed
[mlir][vector] Use getShapeForUnroll's default implementation.
1 parent 56b175d commit 84d8042

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

mlir/include/mlir/Dialect/Vector/IR/VectorOps.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ def Vector_ExtractOp :
731731
def Vector_FMAOp :
732732
Op<Vector_Dialect, "fma", [
733733
Pure, AllTypesMatch<["lhs", "rhs", "acc", "result"]>,
734-
DeclareOpInterfaceMethods<VectorUnrollOpInterface, ["getShapeForUnroll"]>
734+
DeclareOpInterfaceMethods<VectorUnrollOpInterface>
735735
] # ElementwiseMappable.traits>,
736736
Arguments<(ins VectorOfAnyRankOf<[AnyFloat]>:$lhs,
737737
VectorOfAnyRankOf<[AnyFloat]>:$rhs,

mlir/lib/Dialect/Vector/IR/VectorOps.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2374,14 +2374,6 @@ static void populateFromInt64AttrArray(ArrayAttr arrayAttr,
23742374
results.push_back(llvm::cast<IntegerAttr>(attr).getInt());
23752375
}
23762376

2377-
//===----------------------------------------------------------------------===//
2378-
// FmaOp
2379-
//===----------------------------------------------------------------------===//
2380-
2381-
std::optional<SmallVector<int64_t, 4>> FMAOp::getShapeForUnroll() {
2382-
return llvm::to_vector<4>(getVectorType().getShape());
2383-
}
2384-
23852377
//===----------------------------------------------------------------------===//
23862378
// ToElementsOp
23872379
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)