nir/flrp: Lower flrp(a, b, c) differently if another flrp(a, _, c) exists
authorIan Romanick <ian.d.romanick@intel.com>
Sun, 19 Aug 2018 00:07:22 +0000 (17:07 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 7 May 2019 05:52:29 +0000 (22:52 -0700)
commit6698d861a5719cb58019b1a2e073d331a8844002
tree8205bb6b8589e0a966a17b13d0a8497c5324cadc
parent5b908db604b2f47bb8382047533e556db8d5f52b
nir/flrp: Lower flrp(a, b, c) differently if another flrp(a, _, c) exists

This doesn't help on Intel GPUs now because we always take the
"always_precise" path first.  It may help on other GPUs, and it does
prevent a bunch of regressions in "intel/compiler: Don't always require
precise lowering of flrp".

No changes on any Intel platform.  Before a number of large rebases this
helped cycles in a couple shaders on Iron Lake and GM45.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/nir/nir_lower_flrp.c