[pypy-commit] pypy default: Automated merge with ssh://bitbucket.org/pypy/pypy

krono pypy.commits at gmail.com
Tue Mar 8 14:59:55 EST 2016


Author: Tobias Pape <tobias at netshed.de>
Branch: 
Changeset: r82893:c49a7c2adcb7
Date: 2016-03-08 20:49 +0100
http://bitbucket.org/pypy/pypy/changeset/c49a7c2adcb7/

Log:	Automated merge with ssh://bitbucket.org/pypy/pypy

diff --git a/rpython/jit/tool/traceviewer.py b/rpython/jit/tool/traceviewer.py
--- a/rpython/jit/tool/traceviewer.py
+++ b/rpython/jit/tool/traceviewer.py
@@ -103,9 +103,9 @@
             self.last_guard = -1
         else:
             # guards can be out of order nowadays
-            groups = sorted(groups)
-            self.first_guard = guard_number(groups[0])
-            self.last_guard = guard_number(groups[-1])
+            groups = sorted(map(guard_number, groups))
+            self.first_guard = groups[0]
+            self.last_guard = groups[-1]
 
     content = property(get_content, set_content)
 
@@ -156,8 +156,7 @@
         dotgen.emit_edge(self.name(), self.right.name())
 
 def split_one_loop(real_loops, guard_s, guard_content, lineno, no, allloops):
-    for i in range(len(allloops) - 1, -1, -1):
-        loop = allloops[i]
+    for i, loop in enumerate(allloops):
         if no < loop.first_guard or no > loop.last_guard:
             continue
         content = loop.content


More information about the pypy-commit mailing list