nir: opt_vectorize: combine different constant sources
authorJonathan Marek <jonathan@marek.ca>
Fri, 21 Jun 2019 03:05:13 +0000 (23:05 -0400)
committerJonathan Marek <jonathan@marek.ca>
Wed, 26 Jun 2019 18:56:28 +0000 (14:56 -0400)
commit0b5a483baaefa9a7e39c76607d8f0f435aa46315
tree3ac4fb2b451e76fd82fd74bad160ab18ff3b8ca0
parent10688257bd7cc1b4241f7b069a4ee9bc3338be47
nir: opt_vectorize: combine different constant sources

We can vectorize instructions with different constant sources by creating
a new load_const and using that.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/compiler/nir/nir_opt_vectorize.c