intel/compiler: invert the logic of lower_integer_multiplication()
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Thu, 11 Jul 2019 00:03:48 +0000 (17:03 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 12 Aug 2019 22:16:23 +0000 (15:16 -0700)
commit9217cf3b5e349f6fb09cfee23f0975398b0f6acb
tree61f41bf02c44e6f59691322cf1eaf36b7ee2b527
parent6ba4717924f2bdf1e77c62f117b4f6b98ea2f75e
intel/compiler: invert the logic of lower_integer_multiplication()

Invert the logic of how progress is handled: remove the continue
statements and mark progress inside the places where it actually
happens.

We're going to add a new lowering that also looks for BRW_OPCODE_MUL,
so inverting the logic here makes the resulting code much easier to
follow.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
src/intel/compiler/brw_fs.cpp