Commits

Maciej Fijalkowski  committed 5672375

fix this test (if rewrite runs before virtualize)

  • Participants
  • Parent commits 132a6ea
  • Branches kill-gen-store-back-in

Comments (0)

Files changed (1)

File rpython/jit/metainterp/optimizeopt/virtualize.py

             self.do_RAW_MALLOC_VARSIZE_CHAR(op)
         elif effectinfo.oopspecindex == EffectInfo.OS_RAW_FREE:
             self.do_RAW_FREE(op)
+        elif effectinfo.oopspecindex == EffectInfo.OS_JIT_FORCE_VIRTUALIZABLE:
+            # we might end up having CALL here instead of COND_CALL
+            value = self.getvalue(op.getarg(1))
+            if value.is_virtual():
+                return
         else:
             self.emit_operation(op)