nir/divergence: improve DA of shuffle
authorRhys Perry <pendingchaos02@gmail.com>
Tue, 12 Nov 2019 15:29:45 +0000 (15:29 +0000)
committerRhys Perry <pendingchaos02@gmail.com>
Tue, 12 Nov 2019 17:21:38 +0000 (17:21 +0000)
commitc877f4d320b431f64634b8cda057311ea17c9a26
treeb7f6b43808f7da2d891ebc7958fa87abec019c27
parentf97d9334263a4dd8878c4e259fb5afcdc1334904
nir/divergence: improve DA of shuffle

If the data is uniform, then it's really a uniform copy. If the index is
uniform, then it's really a read_invocation.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
src/compiler/nir/nir_divergence_analysis.c