skia2/tests/sksl/runtime
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
..
ArrayIndexing.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
ArrayIndexing.stage Avoid generating unused variables in the Inliner. 2021-02-25 19:18:19 +00:00
ConversionConstructors.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
ConversionConstructors.stage Add .stage output to skslc for runtime effects 2021-02-09 20:11:56 +00:00
GlobalVariables.skvm Support initializers on global variables in SkSL to SkVM 2021-02-17 20:40:32 +00:00
GlobalVariables.stage Support global variables in pipeline stage generator 2021-02-18 00:54:49 +00:00
LoopFloat.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
LoopFloat.stage Avoid generating unused variables in the Inliner. 2021-02-25 19:18:19 +00:00
LoopInt.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
LoopInt.stage Avoid generating unused variables in the Inliner. 2021-02-25 19:18:19 +00:00
SampleWithConstantMatrix.skvm add fast_mul(F32,F32) 2021-02-11 01:13:01 +00:00
SampleWithConstantMatrix.stage Add .stage output to skslc for runtime effects 2021-02-09 20:11:56 +00:00
SampleWithExplicitCoord.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
SampleWithExplicitCoord.stage Add .stage output to skslc for runtime effects 2021-02-09 20:11:56 +00:00
SampleWithUniformMatrix.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
SampleWithUniformMatrix.stage Add .stage output to skslc for runtime effects 2021-02-09 20:11:56 +00:00
SampleWithVariableMatrix.skvm add fast_mul(F32,F32) 2021-02-11 01:13:01 +00:00
SampleWithVariableMatrix.stage Add .stage output to skslc for runtime effects 2021-02-09 20:11:56 +00:00
VectorIndexing.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
VectorIndexing.stage Avoid generating unused variables in the Inliner. 2021-02-25 19:18:19 +00:00