aco/optimizer_postRA: Use unique_ptr + array for instruction indices.
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 17 Aug 2022 06:12:51 +0000 (08:12 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 24 Oct 2022 20:14:16 +0000 (20:14 +0000)
commitb542ab02439d39dd54bc475332977d2c0a2e0920
tree8bd21d2ba7782eb2184b03f05a7ede72cd121817
parent6f598fe4e35723fd76f4847afc1cb2d8881fbccc
aco/optimizer_postRA: Use unique_ptr + array for instruction indices.

According to perf, this roughly halves the impact of the post-RA
optimizer in ACO's compile times.

Measurement was taken using a debug optimized build using
NIR_DEBUG=novalidate RADV_DEBUG=nocache and replaying the Fossil DB
from the Doom Eternal shaders.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18103>
src/amd/compiler/aco_optimizer_postRA.cpp