Module: vkd3d
Branch: master
Commit: d877b877b3d10916a2169b2d049d050955c7159b
URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/d877b877b3d10916a2169b2d049d0…
Author: Francisco Casas <fcasas(a)codeweavers.com>
Date: Tue Nov 21 19:09:32 2023 -0300
vkd3d-shader/hlsl: Record trace of stored values in copy-propagation.
Instead of only storing the value that each variable's component has at
the moment of the instruction currently handled by copy-prop, we store
the trace of all the historic values with their timestamps, i.e. the
instruction index on which the value was stored.
This would allow us to query the value that the variable had at the time
of execution of previous instructions.
---
libs/vkd3d-shader/hlsl_codegen.c | 166 ++++++++++++++++++++++++++-------------
1 file changed, 110 insertions(+), 56 deletions(-)