Skip to content

Commit 0b0073c

Browse files
apaszkeGoogle-ML-Automation
authored andcommitted
[Mosaic TPU] Remove pre-canonicalization optimization pass from tpu.td
PiperOrigin-RevId: 836175829
1 parent 93c5748 commit 0b0073c

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

jaxlib/mosaic/dialect/tpu/tpu.td

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,7 +1479,6 @@ def TPU_LogBufferOp : TPU_Op<"log_buffer"> {
14791479
}
14801480

14811481

1482-
14831482
def LogicalToPhysicalDeviceIdPass : Pass<"logical-to-physical-device-id", "::mlir::func::FuncOp"> {
14841483
let dependentDialects = [
14851484
"::mlir::func::FuncDialect",
@@ -1565,18 +1564,5 @@ def ApplyVectorLayoutPass : Pass<"tpu-apply-vector-layout", "::mlir::func::FuncO
15651564
];
15661565
}
15671566

1568-
def PreCanonicalizationOptimizationPass : Pass<"pre-canonicalization-optimization", "::mlir::func::FuncOp"> {
1569-
let summary = "Fold matmul rhs tranpose into the op before layout inference";
1570-
let constructor = "::mlir::tpu::createPreCanonicalizationOptimizationPass()";
1571-
let dependentDialects = [
1572-
"::mlir::vector::VectorDialect",
1573-
"::mlir::tpu::TPUDialect",
1574-
];
1575-
let options = [
1576-
Option<"hardware_generation", "hardware-generation", "int", /*default=*/"6", "">,
1577-
Option<"lane_count", "lane-count", "int", /*default=*/"128", "">,
1578-
Option<"sublane_count", "sublane-count", "int", /*default=*/"8", "">,
1579-
];
1580-
}
15811567

15821568
#endif // TPU_ATTRS

jaxlib/mosaic/dialect/tpu/tpu_dialect.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,6 @@ std::unique_ptr<OperationPass<func::FuncOp>> createRelayoutInsertionPass(
9090
std::unique_ptr<OperationPass<func::FuncOp>> createApplyVectorLayoutPass(
9191
const ApplyVectorLayoutContext &ctx = ApplyVectorLayoutContext{});
9292

93-
std::unique_ptr<OperationPass<func::FuncOp>>
94-
createPreCanonicalizationOptimizationPass(
95-
int hardware_generation = -1,
96-
std::array<int64_t, 2> target_shape = {8, 128});
97-
9893
std::unique_ptr<OperationPass<func::FuncOp>>
9994
createLogicalToPhysicalDeviceIdPass(int64_t total_devices);
10095

0 commit comments

Comments
 (0)