Commits

Daniel Roberts committed d7fca7d

Partially fixed my test, now to figure out why I'm getting a preamble.

Comments (0)

Files changed (2)

pypy/jit/metainterp/optimizeopt/__init__.py

             ('intbounds', OptIntBounds),
             ('addition', OptAddition),
             ('rewrite', OptRewrite),
-            #('lastsetitem', OptLastSetitem),
             ('virtualize', OptVirtualize),
             ('string', OptString),
             ('heap', OptHeap),

pypy/jit/metainterp/test/test_optimizeopt.py

         i2 = int_sub(i1, 16)
         i3 = int_add(i2, 9)
         i4 = int_sub(i3, 29)
-        jump(i3)
+        jump(i4)
         """
 
         expected = """
         i2 = int_sub(i0, 13)
         i3 = int_sub(i0, 4)
         i4 = int_sub(i0, 33)
-        jump(i3)
+        jump(i4)
         """
         self.optimize_loop(ops, expected)
 
         ops = """
         [i0]
         i1 = int_add(i0, 3)
-        i2 = int_sub(4, i1)
-        i3 = int_sub(i2, 14)
-        i4 = int_add(6, i2)
+        i2 = int_sub(5, i1)
+        i3 = int_sub(i2, 7)
+        i4 = int_add(11, i3)
         jump(i4)
         """
 
         expected = """
         [i0]
         i1 = int_add(i0, 3)
-        i2 = int_sub(1, i0)
-        i3 = int_sub(-13, i0)
-        i4 = int_sub(-7, i0)
+        i2 = int_sub(2, i0)
+        i3 = int_sub(-5, i0)
+        i4 = int_sub(6, i0)
         jump(i4)
         """
         self.optimize_loop(ops, expected)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.