aco: refactor value numbering
authorDaniel Schürmann <daniel@schuermann.dev>
Sat, 19 Oct 2019 14:11:13 +0000 (16:11 +0200)
committerDaniel Schürmann <daniel@schuermann.dev>
Tue, 22 Oct 2019 15:18:59 +0000 (17:18 +0200)
commit3a20ef4a3299fddc886f9d5908d8b3952dd63a54
tree468bc388170d98658dbdf6773fe2a4688e3145d9
parent3a71e1d27b041853d5cb5c56c2f143a2e18d476f
aco: refactor value numbering

Previously, we used one hashset per BB, so that we could
always initialize the current hashset from the immediate
dominator. This patch changes the behavior to a single
hashmap using the block index per instruction to resolve
dominance.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
src/amd/compiler/aco_opt_value_numbering.cpp