461f1506e7
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. |
||
---|---|---|
.. | ||
atomic.comp | ||
bake_gradient.comp | ||
barriers.comp | ||
basic.comp | ||
bitcast-16bit-1.invalid.comp | ||
bitcast-16bit-2.invalid.comp | ||
casts.comp | ||
cfg-preserve-parameter.comp | ||
cfg.comp | ||
coherent-block.comp | ||
coherent-image.comp | ||
composite-array-initialization.comp | ||
composite-construct.comp | ||
culling.comp | ||
defer-parens.comp | ||
dowhile.comp | ||
generate_height.comp | ||
image.comp | ||
inout-struct.invalid.comp | ||
insert.comp | ||
mat3.comp | ||
mod.comp | ||
modf.comp | ||
outer-product.comp | ||
read-write-only.comp | ||
rmw-matrix.comp | ||
rmw-opt.comp | ||
scalar-std450-distance-length-normalize.comp | ||
shared.comp | ||
ssbo-array-length.comp | ||
ssbo-array.comp | ||
struct-layout.comp | ||
struct-packing.comp | ||
torture-loop.comp | ||
type-alias.comp | ||
udiv.comp |