Skip to content

Commit 827781e

Browse files
Reverts 6a9740c
PiperOrigin-RevId: 931763149
1 parent 5bd57af commit 827781e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tensorflow/compiler/mlir/tfrt/transforms/mlrt/import_model.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ absl::StatusOr<mlrt::bc::Buffer> ConvertTfMlirToBytecode(
120120

121121
mlir::StatusScopedDiagnosticHandler diag_handler(module.getContext());
122122

123-
tensorflow::CreateTFInvariantOptimizationPipelineHelper(pm, options);
124-
125123
pm.addPass(mlrt_compiler::CreateWhileToMapFnPass());
126124
// Remove unreachable private functions after map_fn conversion.
127125
pm.addPass(mlir::createSymbolDCEPass());
126+
127+
tensorflow::CreateTFInvariantOptimizationPipelineHelper(pm, options);
128128
// TODO(b/283481729): Add test to cover unused constants that do not
129129
// cause op_key discontinuity
130130
pm.addNestedPass<mlir::func::FuncOp>(mlir::createCanonicalizerPass());

0 commit comments

Comments
 (0)