[pypy-commit] pypy ppc-vsx-support: vector_ext object should never be None, move it to abstract base class (it is enabled at runtime)

plan_rich pypy.commits at gmail.com
Wed Nov 2 09:39:25 EDT 2016


Author: Richard Plangger <planrichi at gmail.com>
Branch: ppc-vsx-support
Changeset: r88081:58c1cfa77a55
Date: 2016-11-02 14:38 +0100
http://bitbucket.org/pypy/pypy/changeset/58c1cfa77a55/

Log:	vector_ext object should never be None, move it to abstract base
	class (it is enabled at runtime)

diff --git a/rpython/jit/backend/x86/runner.py b/rpython/jit/backend/x86/runner.py
--- a/rpython/jit/backend/x86/runner.py
+++ b/rpython/jit/backend/x86/runner.py
@@ -22,6 +22,8 @@
     with_threads = False
     frame_reg = regloc.ebp
 
+    vector_ext = X86VectorExt()
+
     # can an ISA instruction handle a factor to the offset?
     load_supported_factors = (1,2,4,8)
 
@@ -146,7 +148,6 @@
     supports_longlong = False
 
 class CPU_X86_64(AbstractX86CPU):
-    vector_ext = X86VectorExt()
 
     backend_name = 'x86_64'
     NUM_REGS = 16


More information about the pypy-commit mailing list