From 75a730ced59701201ef4247cbe2189a9be6a9d18 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 29 May 2020 10:02:39 +0200 Subject: [PATCH] aco: fix register allocation for subdword instructions on GFX10 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Cc: 20.1 Signed-off-by: Samuel Pitoiset Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_register_allocation.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index c4d5a482932..eca7008bc51 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -1898,10 +1898,8 @@ void register_allocation(Program *program, std::vector& live_out_per_bl if (!definition.isFixed()) { Temp tmp = definition.getTemp(); - /* subdword instructions before RDNA write full registers */ if (tmp.regClass().is_subdword() && - !instr_can_access_subdword(ctx, instr) && - ctx.program->chip_class <= GFX9) { + !instr_can_access_subdword(ctx, instr)) { assert(tmp.bytes() <= 4); tmp = Temp(definition.tempId(), v1); } -- 2.30.2