diff options
author | Timothy Arceri <[email protected]> | 2018-02-27 19:19:21 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-02-28 09:23:49 +1100 |
commit | a050ea60eef9c457a3d5185aa551631df0c35bec (patch) | |
tree | d9be44885ef144928971cb52e7643d5987777e62 /src/compiler/nir/nir_opt_algebraic.py | |
parent | 08fa84bb9adf81aa13422501fef8f077b51ef682 (diff) |
nir: add lower_ldexp to nir compiler options
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_opt_algebraic.py')
-rw-r--r-- | src/compiler/nir/nir_opt_algebraic.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py index d40d59b5cdb..296f0671386 100644 --- a/src/compiler/nir/nir_opt_algebraic.py +++ b/src/compiler/nir/nir_opt_algebraic.py @@ -560,8 +560,8 @@ def ldexp(f, exp, bits): return ('fmul', ('fmul', f, pow2_1), pow2_2) optimizations += [ - (('ldexp@32', 'x', 'exp'), ldexp('x', 'exp', 32)), - (('ldexp@64', 'x', 'exp'), ldexp('x', 'exp', 64)), + (('ldexp@32', 'x', 'exp'), ldexp('x', 'exp', 32), 'options->lower_ldexp'), + (('ldexp@64', 'x', 'exp'), ldexp('x', 'exp', 64), 'options->lower_ldexp'), ] # Unreal Engine 4 demo applications open-codes bitfieldReverse() |