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:
Daniel Schürmann
2020-07-23 09:41:07 +02:00
committed by Marge Bot
parent 626081fe4b
commit 4c89bfc4ec
+1 -1
View File
@@ -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;