aco: prevent infinite recursion in RA for subdword variables
Cc: 20.1 <mesa-stable@lists.freedesktop.org> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6024>
This commit is contained in:
committed by
Marge Bot
parent
626081fe4b
commit
4c89bfc4ec
@@ -591,7 +591,7 @@ std::pair<PhysReg, bool> get_reg_simple(ra_ctx& ctx,
|
||||
RegClass rc = info.rc;
|
||||
|
||||
if (stride == 1) {
|
||||
|
||||
info.rc = RegClass(rc.type(), size);
|
||||
for (unsigned stride = 8; stride > 1; stride /= 2) {
|
||||
if (size % stride)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user