From 24116a8a561ffce9d55ab3b930d9c7648eda9cbb Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Mon, 27 Apr 2020 20:24:24 +0100 Subject: [PATCH] aco: don't recurse in sub-dword get_reg_simple() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_register_allocation.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index 7fd15295ea8..42a4dcbcebf 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -391,6 +391,7 @@ std::pair get_reg_simple(ra_ctx& ctx, } stride = 1; /* stride in full registers */ + rc = info.rc = RegClass(RegType::vgpr, size); } if (stride == 1) { -- 2.30.2