[pypy-commit] pypy llvm-translation-backend: "Implement" new likely / unlikely operation pair by ignoring the hint.

mjacob noreply at buildbot.pypy.org
Fri Feb 6 22:54:02 CET 2015


Author: Manuel Jacob <me at manueljacob.de>
Branch: llvm-translation-backend
Changeset: r75744:94c8bfd0aaba
Date: 2015-02-06 20:20 +0100
http://bitbucket.org/pypy/pypy/changeset/94c8bfd0aaba/

Log:	"Implement" new likely / unlikely operation pair by ignoring the
	hint.

diff --git a/rpython/translator/llvm/genllvm.py b/rpython/translator/llvm/genllvm.py
--- a/rpython/translator/llvm/genllvm.py
+++ b/rpython/translator/llvm/genllvm.py
@@ -1539,6 +1539,12 @@
             database.f.write('declare i8* @_rpy_tls_addr()\n')
         self.w('{result.V} = call i8* @_rpy_tls_addr()'.format(**locals()))
 
+    def op_likely(self, result, cond):
+        self.w('{result.V} = bitcast {cond.TV} to {result.T}'.format(**locals()))
+
+    def op_unlikely(self, result, cond):
+        self.w('{result.V} = bitcast {cond.TV} to {result.T}'.format(**locals()))
+
 
 class GCPolicy(object):
     def __init__(self, genllvm):


More information about the pypy-commit mailing list