Skip to content

Commit a0c019a

Browse files
authored
[mlir][linalg] Delete unused SameVariadicOperandSize trait from ops (#87124)
Both `Transpose` and `Broadcast` specify the `SameVariadicOperandSize` trait. However neither has a variadic operand let alone more than one. This is likely a relic from copying the boilerplate of the `Reduce` definition.
1 parent 2394101 commit a0c019a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,6 @@ def ReduceOp : LinalgStructuredBase_Op<"reduce", [
391391

392392
def TransposeOp : LinalgStructuredBase_Op<"transpose", [
393393
DeclareOpInterfaceMethods<OpAsmOpInterface, ["getAsmResultNames"]>,
394-
SameVariadicOperandSize,
395394
SingleBlockImplicitTerminator<"YieldOp">]> {
396395
let summary = "Transpose operator";
397396
let description = [{
@@ -470,7 +469,6 @@ def TransposeOp : LinalgStructuredBase_Op<"transpose", [
470469

471470
def BroadcastOp : LinalgStructuredBase_Op<"broadcast", [
472471
DeclareOpInterfaceMethods<OpAsmOpInterface, ["getAsmResultNames"]>,
473-
SameVariadicOperandSize,
474472
SingleBlockImplicitTerminator<"YieldOp">]> {
475473
let summary = "Static broadcast operator";
476474
let description = [{

0 commit comments

Comments
 (0)