Files
UnrealEngineUWP/Engine/Source/Developer/ShaderFormatVectorVM
rob krajcarski c18bc543e3 Fix for VM bytecode generation which was failing in a very small number of cases of the form:
A = GetFirstValue();
B = A;
A = GetSecondValue();
C = A; // <-- this would get GetSecondValue() assigned to C instead of GetFirstValue()

Adds an SSA pass to help reduce overwriting registers, adds logic to remove self assignments, and adds logic to stop propagating when values are dirtied

From a sampling of scripts, about 2% are changed (where 1-3 unnecessary ops have been deleted).

#rb simon.tovey
#preflight 62b0d63c8e03312ad83a0c51
#jira UE-148892

[CL 20756957 by rob krajcarski in ue5-main branch]
2022-06-21 09:55:03 -04:00
..