aco/optimizer_postRA: Distinguish overwritten untrackable and subdword.
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 3 Nov 2022 17:30:28 +0000 (18:30 +0100)
committerTimur Kristóf <timur.kristof@gmail.com>
Sun, 1 Jan 2023 14:04:07 +0000 (15:04 +0100)
commit3d29779a25a98898163b1dc9c687e6e6211d13c5
tree4c0166a57c53495755b9df23b4c29a8b07a0b735
parentd3b0f781103ffcef4e18257b8289948e9d37dd99
aco/optimizer_postRA: Distinguish overwritten untrackable and subdword.

This allows is_overwritten_since to return false when the last
writer instruction of a register can't be tracked but we know it wasn't
written in the current block.

Fossil DB stats on Rembrandt (RDNA2):
Totals from 1163 (0.86% of 134906) affected shaders:
CodeSize: 9815920 -> 9805016 (-0.11%)
Instrs: 1843688 -> 1840962 (-0.15%)
Latency: 19219153 -> 19209171 (-0.05%)
InvThroughput: 3354375 -> 3353852 (-0.02%)

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/16161>
src/amd/compiler/aco_optimizer_postRA.cpp