File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -226,10 +226,6 @@ def compile_scc_to_ir(
226226 if errors .num_errors > 0 :
227227 return modules
228228
229- # XXX: HOW WILL WE DEAL WITH REFCOUNTING ON THE SPILLAGE
230- # DO WE DO IT... LAST? MAYBE MAYBE MAYBE YES
231- # ONLY DO UNINIT.... YEAH OK
232-
233229 # Insert uninit checks.
234230 for module in modules .values ():
235231 for fn in module .functions :
Original file line number Diff line number Diff line change @@ -24,17 +24,11 @@ def insert_spills(ir: FuncIR, env: ClassIR) -> None:
2424 live = analyze_live_regs (ir .blocks , cfg )
2525 entry_live = live .before [ir .blocks [0 ], 0 ]
2626
27- # from mypyc.ir.pprint import format_func
28-
29- # print('\n'.join(format_func(ir)))
30-
3127 entry_live = {op for op in entry_live if not (isinstance (op , Register ) and op .is_arg )}
32- # XXX : Actually for now, no Registers at all -- we keep the manual spills
28+ # TODO : Actually for now, no Registers at all -- we keep the manual spills
3329 entry_live = {op for op in entry_live if not isinstance (op , Register )}
3430
3531 ir .blocks = spill_regs (ir .blocks , env , entry_live , live )
36- # print("\n".join(format_func(ir)))
37- # print("\n\n\n=========")
3832
3933
4034def spill_regs (
You can’t perform that action at this time.
0 commit comments