Author: Carl Friedrich Bolz-Tereick <cfb...@gmx.de>
Branch: regalloc-playground
Changeset: r92246:7a0afd3f4cdd
Date: 2017-08-24 11:08 +0200
http://bitbucket.org/pypy/pypy/changeset/7a0afd3f4cdd/

Log:    rename argument

diff --git a/rpython/jit/backend/llsupport/regalloc.py 
b/rpython/jit/backend/llsupport/regalloc.py
--- a/rpython/jit/backend/llsupport/regalloc.py
+++ b/rpython/jit/backend/llsupport/regalloc.py
@@ -414,7 +414,7 @@
         return loc
 
     def _pick_variable_to_spill(self, forbidden_vars, selected_reg=None,
-                                need_lower_byte=False, vars=None):
+                                need_lower_byte=False, regs=None):
 
         # try to spill a variable that has no further real usages, ie that only
         # appears in failargs or in a jump
@@ -422,15 +422,15 @@
         # is the furthest away from the current position
 
         # YYY check for fixed variable usages
-        if vars is None:
-            vars = self.reg_bindings.keys()
+        if regs is None:
+            regs = self.reg_bindings.keys()
 
         cur_max_use_distance = -1
         position = self.position
         candidate = None
         cur_max_age_failargs = -1
         candidate_from_failargs = None
-        for next in vars:
+        for next in regs:
             reg = self.reg_bindings[next]
             if next in forbidden_vars:
                 continue
@@ -700,7 +700,7 @@
                              if reg not in self.save_around_call_regs]
             # chose which to spill using the usual spill heuristics
             while len(move_or_spill) > len(free_regs):
-                v = self._pick_variable_to_spill([], vars=move_or_spill)
+                v = self._pick_variable_to_spill([], regs=move_or_spill)
                 self._bc_spill(v, new_free_regs)
                 move_or_spill.remove(v)
             assert len(move_or_spill) <= len(free_regs)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to