glsl: Use hash table cloning in copy propagation
authorThomas Helland <thomashelland90@gmail.com>
Mon, 9 Jan 2017 22:14:46 +0000 (23:14 +0100)
committerThomas Helland <thomashelland90@gmail.com>
Wed, 14 Mar 2018 18:52:02 +0000 (19:52 +0100)
commit5f129c05e698157c4481cd1e80a4a1b2f43ef96c
tree7197260e4bb59d477be2d1f9e006081832b3508a
parent6baaf4291b7ee83a50038a215412ab1de75b0f32
glsl: Use hash table cloning in copy propagation

Walking the whole hash table, inserting entries by hashing them first
is just a really bad idea. We can simply memcpy the whole thing.

V2: Remove leftover creation of acp in two places

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/compiler/glsl/opt_copy_propagation.cpp
src/compiler/glsl/opt_copy_propagation_elements.cpp