cuda.c: compute_private_size: don't put read only scalars in registers