File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ def aggresive(x: ir.IRNode) -> bool:
1313
1414@dataclass
1515class InlinePass (Pass ):
16- herustic : Callable [[ir .IRNode ], bool ] = field (default = aggresive )
16+ heuristic : Callable [[ir .IRNode ], bool ] = field (default = aggresive )
1717
1818 def unsafe_run (self , mt : ir .Method ) -> RewriteResult :
1919
20- result = Walk (Inline (heuristic = self .herustic )).rewrite (mt .code )
20+ result = Walk (Inline (heuristic = self .heuristic )).rewrite (mt .code )
2121 result = Walk (CFGCompactify ()).rewrite (mt .code ).join (result )
2222
2323 # dce
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def main_inline_pass2(x: int):
3131 y = inline_func (x )
3232 return y + 1
3333
34- inline = InlinePass (main_inline_pass2 .dialects , herustic = lambda x : False )
34+ inline = InlinePass (main_inline_pass2 .dialects , heuristic = lambda x : False )
3535 a = main_inline_pass2 (1 )
3636 main_inline_pass2 .code .print ()
3737 inline (main_inline_pass2 )
You canβt perform that action at this time.
0 commit comments