Skip to content

Commit 28c208c

Browse files
ekayaaslancopybara-github
authored andcommitted
Push shardy outliner up past RemoveShardingGroups pass.
RemoveShardingGroups drops sharding group ops on the module. PiperOrigin-RevId: 905006552
1 parent edbab21 commit 28c208c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

shardy/dialect/sdy/transforms/export/export_pipeline.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,10 @@ void runShardyPartitioner(OpPassManager& pm, int& dumpIndex,
7171
void addExportPipeline(OpPassManager& pm, int& dumpIndex,
7272
const ExportOptions& options) {
7373
pm.addNestedPass<func::FuncOp>(createConstantOrScalarMergerPass());
74+
pm.addPass(createExportNamedComputationsPass());
7475
if (!options.avoidExportForPartitioning) {
7576
pm.addPass(createRemoveShardingGroupsPass());
76-
pm.addPass(createExportNamedComputationsPass());
7777
pm.addNestedPass<func::FuncOp>(createShardingConstraintToReshardPass());
78-
} else {
79-
pm.addPass(createExportNamedComputationsPass());
8078
}
8179
pm.addNestedPass<
8280
func::FuncOp>(createSinkDataFlowEdgesPass(SinkDataFlowEdgesPassOptions{

0 commit comments

Comments
 (0)