File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/bloqade/shuttle/passes Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,6 @@ def unsafe_run(self, mt: Method) -> RewriteResult:
3838 InlineGetItem (),
3939 ilist .rewrite .InlineGetItem (),
4040 ilist .rewrite .HintLen (),
41- DeadCodeElimination (),
42- CommonSubexpressionElimination (),
4341 )
4442 result = Fixpoint (Walk (rule )).rewrite (mt .code ).join (result )
4543
@@ -71,6 +69,13 @@ def unsafe_run(self, mt: Method) -> RewriteResult:
7169 result = self .fold .unsafe_run (mt ).join (result )
7270 result = Walk (Inline (self .inline_heuristic )).rewrite (mt .code ).join (result )
7371 result = Walk (Fixpoint (CFGCompactify ())).rewrite (mt .code ).join (result )
72+
73+ rule = Chain (
74+ CommonSubexpressionElimination (),
75+ DeadCodeElimination (),
76+ )
77+ result = Fixpoint (Walk (rule )).rewrite (mt .code ).join (result )
78+
7479 return result
7580
7681 @classmethod
You can’t perform that action at this time.
0 commit comments