From fcd612ba5687456fa86c20f0016d5a887560515d Mon Sep 17 00:00:00 2001 From: Daniel Schürmann Date: Thu, 23 Jul 2020 09:41:07 +0200 Subject: aco: prevent infinite recursion in RA for subdword variables Cc: 20.1 Reviewed-by: Rhys Perry Part-of: (cherry picked from commit 4c89bfc4ec0ea29ab757b0391bf646673e483668) --- .pick_status.json | 2 +- src/amd/compiler/aco_register_allocation.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 0bf57cf6e39..7fc2072923e 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -3910,7 +3910,7 @@ "description": "aco: prevent infinite recursion in RA for subdword variables", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": null }, diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index dfa70c624c1..ef733eb4cbc 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -396,7 +396,7 @@ std::pair get_reg_simple(ra_ctx& ctx, } if (stride == 1) { - + info.rc = RegClass(rc.type(), size); for (unsigned stride = 8; stride > 1; stride /= 2) { if (size % stride) continue; -- cgit v1.2.3