OSDN Git Service

nir: clone instruction set rather than removing individual entries
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 20 Feb 2019 03:03:37 +0000 (14:03 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 21 Feb 2019 21:36:36 +0000 (08:36 +1100)
commitd9e08e753bf4125edcdb561bbe80547999eb8e32
treec39a7648ca0439f8d7d59f1af06cb81bbc983951
parentcd0ac3a6af64478a1f1552225733ba2405a31dc6
nir: clone instruction set rather than removing individual entries

This reduces the time spent in nir_opt_cse() by almost a half.

The massif tool from callgrind reported no change in peak
memory use with the large doliphin uber shaders I used for
testing.

Reviewed-by: Thomas Helland<thomashelland90@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_opt_cse.c