nir/lower_locals_to_regs: cast array index to 32 bit
authorKarol Herbst <kherbst@redhat.com>
Fri, 15 Mar 2019 15:06:22 +0000 (16:06 +0100)
committerKarol Herbst <karolherbst@gmail.com>
Tue, 19 Mar 2019 04:08:07 +0000 (04:08 +0000)
commit0ccdf23a57ed8f2a8763f4187b440720fa912937
tree0840d39a8d38de8c9211ab3fb3d14c764c791e5d
parent44d32e62fb8d1fa9bf22c136aa41114d19b2d874
nir/lower_locals_to_regs: cast array index to 32 bit

local memory is too small to require 64 bit pointers, so cast the array index
to a 32 bit value to save up on 64 bit operations.

Signed-off-by: Karol Herbst <kherbst@redhat.com>
src/compiler/nir/nir_lower_locals_to_regs.c