skia2/tests/sksl/workarounds
John Stiles 345d72124d Eliminate inliner temporary variables for functions with a single exit.
When we determine that a function only contains a single return
statement, there is no need to create a temporary variable and store the
result expression into a variable. Instead, we can directly replace the
function-call expression with the return-statement's expression.

This dramatically simplifies the final optimized output from chains of
very simple inlined functions, which is a very common pattern for trees
of Skia fragment processors.

Change-Id: I6789064a321daf43db2e1cef4915f25ed74d6131
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/344665
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2020-12-16 17:26:06 +00:00
..
golden Eliminate inliner temporary variables for functions with a single exit. 2020-12-16 17:26:06 +00:00
AbsInt.sksl Migrate several GLSL workaround unit tests to golden files. 2020-09-17 16:41:18 +00:00
BlendGuardedDivide.sksl Add test for sk_Caps.mustGuardDivisionEvenAfterExplicitZeroCheck. 2020-10-09 13:48:13 +00:00
BlendModesAllZeroVec.sksl Add test for sk_Caps.inBlendModesFailRandomlyForAllZeroVec. 2020-10-09 13:44:43 +00:00
FractNegative.sksl Migrate several GLSL workaround unit tests to golden files. 2020-09-17 16:41:18 +00:00
FragCoords.sksl Migrate remaining SkSL GLSL tests to golden outputs. 2020-09-18 19:22:19 +00:00
LoopCondition.sksl Migrate several GLSL workaround unit tests to golden files. 2020-09-17 16:41:18 +00:00
MinAndAbsTogether.sksl Migrate several GLSL workaround unit tests to golden files. 2020-09-17 16:41:18 +00:00
NegatedAtan.sksl Migrate several GLSL workaround unit tests to golden files. 2020-09-17 16:41:18 +00:00
PowWithConstantExponent.sksl Migrate several GLSL workaround unit tests to golden files. 2020-09-17 16:41:18 +00:00
RewriteDoWhileLoops.sksl Migrate remaining SkSL GLSL tests to golden outputs. 2020-09-18 19:22:19 +00:00
TernaryShortCircuit.sksl Migrate several GLSL workaround unit tests to golden files. 2020-09-17 16:41:18 +00:00