intel/compiler: don't instantiate a builder for each instruction
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 10 Jul 2019 23:48:01 +0000 (16:48 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 12 Aug 2019 22:16:23 +0000 (15:16 -0700)
commit6ba4717924f2bdf1e77c62f117b4f6b98ea2f75e
treeb6caaab39b17cf8620483bafda3dc45e82e48c54
parent75b3868dcc81e9b629e997f354aae691b7933f32
intel/compiler: don't instantiate a builder for each instruction

Don't instantiate a builder for each instruction during
lower_integer_multiplication(). Instantiate one only when needed.

On the other hand, these unneeded builders don't seem to cost much to
init, so I don't expect any significant difference in performance:
this is mostly about code organization.

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
src/intel/compiler/brw_fs.h