https://hgpu.org/?p=3640
Dynamic detection of uniform and affine vectors in GPGPU computations