SPIRV-Cross/reference/opt/shaders/asm
Hans-Kristian Arntzen 461f1506e7 Do not eagerly invalidate all active variables on a branch.
This is not necessary, as we must emit an invalidating store before we
potentially consume an invalid expression. In fact, we're a bit
conservative here in this case for example:

int tmp = variable;
if (...)
{
    variable = 10;
}
else
{
    // Consuming tmp here is fine, but it was
    // invalidated while emitting other branch.
    // Technically, we need to study if there is an invalidating store
    // in the CFG between the loading block and this block, and the other
    // branch will not be a part of that analysis.
    int tmp2 = tmp * tmp;
}

Fixing this case means complex CFG traversal *everywhere*, and it feels like overkill.

Fixing this exposed a bug with access chains, so fix a bug where expression dependencies were not
inherited properly in access chains. Access chains are now considered forwarded if there
is at least one dependency which is also forwarded.
2019-07-24 11:17:30 +02:00
..
comp Fix declaration of loop variables with a Phi helper copy. 2019-06-25 10:45:15 +02:00
frag Do not eagerly invalidate all active variables on a branch. 2019-07-24 11:17:30 +02:00
geom GLSL: Unroll loads from builtin pos/point arrays. 2019-03-21 11:25:41 +01:00
tesc Fix case where SampledImage would get flushed to temporary. 2018-04-27 10:06:30 +02:00
tese GLSL: Deal with array loads from input in tessellation. 2019-03-21 11:50:53 +01:00
vert Fix case where a struct is loaded which contains a row-major matrix. 2019-02-20 12:19:00 +01:00
extended-debug-extinst.invalid.asm.comp Add simple test for extended debug operations. 2019-07-05 10:44:30 +02:00