From 8fc24f9a45d649fb644ce78f954ae7b6a04e26db Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Thu, 9 Apr 2020 17:00:25 +0100 Subject: aco: fix copy statistic for 64-bit vgpr constant copy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The statistic is in units of instructions. Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_lower_to_hw_instr.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/compiler/aco_lower_to_hw_instr.cpp b/src/amd/compiler/aco_lower_to_hw_instr.cpp index 63e13d96c88..4be1bef2a27 100644 --- a/src/amd/compiler/aco_lower_to_hw_instr.cpp +++ b/src/amd/compiler/aco_lower_to_hw_instr.cpp @@ -845,6 +845,7 @@ void handle_operands(std::map& copy_map, lower_context* bld.vop1(aco_opcode::v_mov_b32, it->second.def, Operand((uint32_t)val)); bld.vop1(aco_opcode::v_mov_b32, Definition(PhysReg{it->second.def.physReg() + 1}, v1), Operand((uint32_t)(val >> 32))); + ctx->program->statistics[statistic_copies]++; } else { bld.copy(it->second.def, it->second.op); } -- cgit v1.2.3