Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions shardy/dialect/sdy/transforms/import/import_pipeline.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ void addImportPipeline(OpPassManager& pm, int& dumpIndex,
// constraints. This ensures we can detect sharding conflicts between group
// members which have pre-propagation shardings due to sharding constraints.
pm.addPass(createShardingGroupImportPass());
if (!options.enableLateInlining) {
pm.addPass(createImportFuncCallsPass());
// Keep SymbolDCEPass after ImportFuncCallsPass.
pm.addPass(createSymbolDCEPass());
}
}

void addImportPipeline(OpPassManager& pm, const PropagationOptions& options) {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,9 @@ void populateExportOptions(ExportOptions& options,
void addPropagationPipeline(OpPassManager& pm, int& dumpIndex,
const PropagationOptions& options) {
addImportPipeline(pm, dumpIndex, options);
if (options.enableLateInlining) {
pm.addPass(createImportFuncCallsPass());
// Keep SymbolDCEPass after ImportFuncCallsPass.
pm.addPass(createSymbolDCEPass());
}
pm.addPass(createImportFuncCallsPass());
// Keep SymbolDCEPass after ImportFuncCallsPass.
pm.addPass(createSymbolDCEPass());
{
PropagationOptions optionsWithKeepShardingRules = options;
optionsWithKeepShardingRules.keepShardingRules = true;
Expand Down
Loading
Loading