Author: Manuel Jacob <m...@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): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit