From: Jesse Natalie Date: Mon, 22 Jun 2020 22:01:00 +0000 (-0700) Subject: nir: Remove 32bit restriction for uadd_carry optimization X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d91f85f16e0b5cb75eddb3344343b9dc9a58d83a;p=mesa.git nir: Remove 32bit restriction for uadd_carry optimization Reviewed-by: Jason Ekstrand Part-of: --- diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py index c394b07a4e9..2fe41d02deb 100644 --- a/src/compiler/nir/nir_opt_algebraic.py +++ b/src/compiler/nir/nir_opt_algebraic.py @@ -1156,7 +1156,7 @@ optimizations.extend([ # Misc. lowering (('fmod', a, b), ('fsub', a, ('fmul', b, ('ffloor', ('fdiv', a, b)))), 'options->lower_fmod'), (('frem', a, b), ('fsub', a, ('fmul', b, ('ftrunc', ('fdiv', a, b)))), 'options->lower_fmod'), - (('uadd_carry@32', a, b), ('b2i', ('ult', ('iadd', a, b), a)), 'options->lower_uadd_carry'), + (('uadd_carry', a, b), ('b2i', ('ult', ('iadd', a, b), a)), 'options->lower_uadd_carry'), (('usub_borrow@32', a, b), ('b2i', ('ult', a, b)), 'options->lower_usub_borrow'), (('bitfield_insert', 'base', 'insert', 'offset', 'bits'),