skia2/tests/sksl/folding
John Stiles 511c500ad4 Avoid generating unused variables in the Inliner.
These variables were later being eliminated by the dead-code-elimination
pass, so you can't see them directly in the final output, but removing
them affects the name mangling off all future symbols, so it causes an
enormous ripple effect in the diff. And of course, it's a waste of time
and memory to synthesize IRNodes just to destroy them later.

If we disable control-flow analysis, we lose the dead-code-elimination
pass entirely; this change is also beneficial for emitting better code
when optimizations are turned off.

Change-Id: I882b3be4f3fd99b77d99b6abe128f26bb9252c89
Bug: skia:11319
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/375776
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-02-25 19:18:19 +00:00
..
AssignmentOps.glsl Add SkSL test demonstrating missed optimization with +=. 2021-02-09 19:17:26 +00:00
BoolFolding.glsl Support half4 return values from main() in the SPIR-V code generator. 2021-01-27 02:46:03 +00:00
FloatFolding.glsl Avoid generating unused variables in the Inliner. 2021-02-25 19:18:19 +00:00
IntFoldingES2.glsl Avoid generating unused variables in the Inliner. 2021-02-25 19:18:19 +00:00
IntFoldingES3.glsl Support half4 return values from main() in the SPIR-V code generator. 2021-01-27 02:46:03 +00:00
MatrixFoldingES2.glsl Support half4 return values from main() in the SPIR-V code generator. 2021-01-27 02:46:03 +00:00
MatrixFoldingES3.glsl Support half4 return values from main() in the SPIR-V code generator. 2021-01-27 02:46:03 +00:00
SelfAssignment.glsl Fix alpha channel in SelfAssignment test. 2021-02-11 14:41:15 +00:00
ShortCircuitBoolFolding.glsl Avoid generating unused variables in the Inliner. 2021-02-25 19:18:19 +00:00
VectorScalarFolding.glsl Avoid generating unused variables in the Inliner. 2021-02-25 19:18:19 +00:00
VectorVectorFolding.glsl Avoid generating unused variables in the Inliner. 2021-02-25 19:18:19 +00:00