nir: return progress from lower_idiv
authorRob Clark <robclark@freedesktop.org>
Mon, 9 May 2016 16:36:03 +0000 (12:36 -0400)
committerRob Clark <robclark@freedesktop.org>
Sun, 15 May 2016 21:25:48 +0000 (17:25 -0400)
commit79d6409a1467127daaea8a98e6d8c14779180a79
tree846f04a99524ff0735508af12f1f138a70387b08
parentf8840f471deb86ee8a545255cea0a889557846e9
nir: return progress from lower_idiv

With algebraic-opt support for lowering div to shift, the driver would
like to be able to run this pass *after* the main opt-loop, and then
conditionally re-run the opt-loop if this pass actually lowered some-
thing.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_idiv.c