nir: Add an algebraic optimization for float->double->float
authorJesse Natalie <jenatali@microsoft.com>
Mon, 22 Jun 2020 15:12:54 +0000 (08:12 -0700)
committerDave Airlie <airlied@redhat.com>
Mon, 28 Dec 2020 23:07:24 +0000 (09:07 +1000)
commit3f779013423b5472e1da939dab1304e9998cfc47
treeade45373898cd2ee489a42275b2f4add77e7b624
parent24669a672f331a10152f9a4d7deb6126a1106211
nir: Add an algebraic optimization for float->double->float

As part of this series, it removes the need for float->double conversion,
just to be able to print a single float.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8254>
src/compiler/nir/nir_opt_algebraic.py