nir: pass nir_op to calculate_iterations()
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 6 Dec 2018 04:56:55 +0000 (15:56 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 12 Mar 2019 00:52:30 +0000 (00:52 +0000)
commit67c3478482f55a0e86397c0f1af65ccef84f089a
treed9ed1b41d1b7281dd665f10fc50b898bb4680632
parent11e8f8a166dad78985659214755f18f97da64545
nir: pass nir_op to calculate_iterations()

Rather than getting this from the alu instruction this allows us
some flexibility. In the following pass we instead pass the
inverse op.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/nir/nir_loop_analyze.c