Author: Richard Plangger <r...@pasra.at>
Branch: vecopt
Changeset: r78678:bede2e3b7ce5
Date: 2015-07-25 10:57 +0200
http://bitbucket.org/pypy/pypy/changeset/bede2e3b7ce5/

Log:    minor refactoring

diff --git a/rpython/jit/metainterp/optimizeopt/vectorize.py 
b/rpython/jit/metainterp/optimizeopt/vectorize.py
--- a/rpython/jit/metainterp/optimizeopt/vectorize.py
+++ b/rpython/jit/metainterp/optimizeopt/vectorize.py
@@ -138,7 +138,7 @@
         self.clear_newoperations();
 
         # vectorize
-        self.build_dependency_graph()
+        self.dependency_graph = DependencyGraph(self.loop)
         self.find_adjacent_memory_refs()
         self.extend_packset()
         self.combine_packset()
@@ -193,7 +193,8 @@
             operations.append(op)
             self.emit_unrolled_operation(op)
 
-        prohibit_opnums = (rop.GUARD_FUTURE_CONDITION, rop.GUARD_EARLY_EXIT,
+        prohibit_opnums = (rop.GUARD_FUTURE_CONDITION,
+                           rop.GUARD_EARLY_EXIT,
                            rop.GUARD_NOT_INVALIDATED)
 
         orig_jump_args = jump_op.getarglist()[:]
@@ -273,9 +274,6 @@
         unroll_count = simd_vec_reg_bytes // byte_count
         return unroll_count-1 # it is already unrolled once
 
-    def build_dependency_graph(self):
-        self.dependency_graph = DependencyGraph(self.loop)
-
     def find_adjacent_memory_refs(self):
         """ the pre pass already builds a hash of memory references and the
         operations. Since it is in SSA form there are no array indices.
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to