skia2/tests/sksl/blend
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
BlendClear.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendColor.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendColorBurn.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendColorDodge.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendDarken.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendDifference.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendDst.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendDstAtop.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendDstIn.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendDstOut.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendDstOver.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendEnum.sksl Fix SPIR-V and Metal support for enum types. 2020-11-30 18:05:48 +00:00
BlendExclusion.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendHardLight.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendHue.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendLighten.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendLuminosity.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendModulate.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendMultiply.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendOverlay.sksl Rename BlendOverlap to BlendOverlay. 2020-10-02 22:26:15 +00:00
BlendPlus.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendSaturation.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendScreen.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendSoftLight.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendSrc.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendSrcAtop.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendSrcIn.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendSrcOut.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendSrcOver.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
BlendXor.sksl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00