Skip to content
Open
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
2 changes: 2 additions & 0 deletions exir/passes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
from executorch.exir.pass_base import ExportPass
from executorch.exir.pass_manager import PassManager, PassType
from executorch.exir.passes.const_prop_pass import ConstPropPass
from executorch.exir.passes.cse_pass import CSEPass
from executorch.exir.passes.debug_handle_generator_pass import DebugHandleGeneratorPass

from executorch.exir.passes.executorch_prim_ops_registry import _EXECUTORCH_SYM_OPS
Expand Down Expand Up @@ -507,6 +508,7 @@ def dead_code_elimination_pass(graph_module: torch.fx.GraphModule) -> PassResult
base_post_op_replace_passes: List[Callable[[torch.nn.Module], PassResult]] = (
PassManager(
passes=[
CSEPass(),
dead_code_elimination_pass,
DebugHandleGeneratorPass(),
]
Expand Down
Loading