nir/algebraic: Mark some value range analysis-based optimizations imprecise
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 7 Aug 2019 15:54:04 +0000 (08:54 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 29 Aug 2019 20:15:52 +0000 (13:15 -0700)
commitccb236d1bc6375bdf9bc47550bdfa348ea7369b9
tree807311d6723461b3e0ced2e6e56b08aa4291e59e
parent30b9ed92ea423a4857023ca5e2222ae409672fa5
nir/algebraic: Mark some value range analysis-based optimizations imprecise

This didn't fix bug #111308, but it was found will trying to find the
actual cause of that bug.

Fixes piglit tests (new in piglit!110):

    - fs-fract-of-NaN.shader_test
    - fs-lt-nan-tautology.shader_test
    - fs-ge-nan-tautology.shader_test

No shader-db changes on any Intel platform.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111308
Fixes: b77070e293c ("nir/algebraic: Use value range analysis to eliminate tautological compares")
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/nir/nir_opt_algebraic.py