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>
This commit is contained in:

committed by
Caio Marcelo de Oliveira Filho

parent
75b3868dcc
commit
6ba4717924
@@ -406,10 +406,8 @@ private:
|
||||
|
||||
void resolve_inot_sources(const brw::fs_builder &bld, nir_alu_instr *instr,
|
||||
fs_reg *op);
|
||||
void lower_mul_dword_inst(fs_inst *inst, bblock_t *block,
|
||||
const brw::fs_builder &ibld);
|
||||
void lower_mulh_inst(fs_inst *inst, bblock_t *block,
|
||||
const brw::fs_builder &ibld);
|
||||
void lower_mul_dword_inst(fs_inst *inst, bblock_t *block);
|
||||
void lower_mulh_inst(fs_inst *inst, bblock_t *block);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user