nir: Optimize umod lowering
authorSagar Ghuge <sagar.ghuge@intel.com>
Mon, 22 Jul 2019 23:30:56 +0000 (16:30 -0700)
committerSagar Ghuge <sagar.ghuge@intel.com>
Fri, 26 Jul 2019 18:19:23 +0000 (11:19 -0700)
commitd5992ab134f6d3d8d8a885be50fe2f696fe0354e
treefaf3569f101fe1c121843a79734f2d247e85639f
parentf8c71d7632914c3ce27f7e71ca8f28a6fb30001d
nir: Optimize umod lowering

We don't have calculate final quotient in order to calculate unsigned
modulo result.  Once we are done with error correction we have partial
result which can be used to find out modulo operation result

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/nir/nir_lower_idiv.c