skia2/tests/sksl/inliner/golden
John Stiles 9e94812bef Revert "Eliminate inliner temporary variables for functions with a single exit."
This reverts commit 345d72124d.

Reason for revert: can break ES2 for-loop rules

Original change's description:
> 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>

TBR=brianosman@google.com,ethannicholas@google.com,johnstiles@google.com

Change-Id: I60845f22159605a06047b030e2686a769121a35a
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/345120
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2020-12-16 18:24:57 +00:00
..
DoWhileBodyMustBeInlinedIntoAScope.glsl Revert "Eliminate inliner temporary variables for functions with a single exit." 2020-12-16 18:24:57 +00:00
DoWhileTestCannotBeInlined.glsl Align default values of GrShaderCaps with StandaloneShaderCaps. 2020-09-16 15:16:37 +00:00
ExponentialGrowth.glsl Avoid creating unnecessary scopes during inlining. 2020-12-15 21:11:45 +00:00
ExponentialGrowthStandaloneSettings.glsl Avoid creating unnecessary scopes during inlining. 2020-12-15 21:11:45 +00:00
ForBodyMustBeInlinedIntoAScope.glsl Revert "Eliminate inliner temporary variables for functions with a single exit." 2020-12-16 18:24:57 +00:00
ForInitializerExpressionsCanBeInlined.glsl Reland "Remove inliner from IR generation stage." 2020-11-20 18:44:07 +00:00
ForWithoutReturnInsideCanBeInlined.glsl Revert "Eliminate inliner temporary variables for functions with a single exit." 2020-12-16 18:24:57 +00:00
ForWithReturnInsideCannotBeInlined.glsl Align default values of GrShaderCaps with StandaloneShaderCaps. 2020-09-16 15:16:37 +00:00
IfBodyMustBeInlinedIntoAScope.glsl Revert "Eliminate inliner temporary variables for functions with a single exit." 2020-12-16 18:24:57 +00:00
IfElseBodyMustBeInlinedIntoAScope.glsl Revert "Eliminate inliner temporary variables for functions with a single exit." 2020-12-16 18:24:57 +00:00
IfElseChainWithReturnsCanBeInlined.glsl Declare all inlined variables at the topmost scope possible. 2020-12-16 17:24:56 +00:00
IfTestCanBeInlined.glsl Revert "Eliminate inliner temporary variables for functions with a single exit." 2020-12-16 18:24:57 +00:00
IfWithReturnsCanBeInlined.glsl Avoid creating unnecessary scopes during inlining. 2020-12-15 21:11:45 +00:00
InlineKeywordOverridesThreshold.glsl Avoid creating unnecessary scopes during inlining. 2020-12-15 21:11:45 +00:00
InlinerAvoidsVariableNameOverlap.glsl Revert "Eliminate inliner temporary variables for functions with a single exit." 2020-12-16 18:24:57 +00:00
InlinerCanBeDisabled.glsl Revert "Eliminate inliner temporary variables for functions with a single exit." 2020-12-16 18:24:57 +00:00
InlinerCanBeDisabledStandaloneSettings.glsl Revert "Eliminate inliner temporary variables for functions with a single exit." 2020-12-16 18:24:57 +00:00
InlinerManglesNames.glsl Revert "Eliminate inliner temporary variables for functions with a single exit." 2020-12-16 18:24:57 +00:00
InlinerWrapsEarlyReturnsWithDoWhileBlock.glsl Reland "Remove inliner from IR generation stage." 2020-11-20 18:44:07 +00:00
InlinerWrapsEarlyReturnsWithDoWhileBlockStandaloneSettings.glsl Rename 'DefaultSettings' golden outputs to 'StandaloneSettings'. 2020-09-21 22:15:51 +00:00
InlineThreshold.glsl Align default values of GrShaderCaps with StandaloneShaderCaps. 2020-09-16 15:16:37 +00:00
InlineWithInoutArgument.glsl Avoid creating unnecessary scopes during inlining. 2020-12-15 21:11:45 +00:00
InlineWithModifiedArgument.glsl Revert "Eliminate inliner temporary variables for functions with a single exit." 2020-12-16 18:24:57 +00:00
InlineWithNestedBigCalls.glsl Avoid creating unnecessary scopes during inlining. 2020-12-15 21:11:45 +00:00
InlineWithNestedCalls.glsl Avoid creating unnecessary scopes during inlining. 2020-12-15 21:11:45 +00:00
InlineWithUnmodifiedArgument.glsl Align default values of GrShaderCaps with StandaloneShaderCaps. 2020-09-16 15:16:37 +00:00
InlineWithUnnecessaryBlocks.glsl Revert "Eliminate inliner temporary variables for functions with a single exit." 2020-12-16 18:24:57 +00:00
ShortCircuitEvaluationsCannotInlineRightHandSide.glsl Revert "Eliminate inliner temporary variables for functions with a single exit." 2020-12-16 18:24:57 +00:00
SwitchWithCastCanBeInlined.glsl Revert "Eliminate inliner temporary variables for functions with a single exit." 2020-12-16 18:24:57 +00:00
SwitchWithoutReturnInsideCanBeInlined.glsl Revert "Eliminate inliner temporary variables for functions with a single exit." 2020-12-16 18:24:57 +00:00
SwitchWithReturnInsideCannotBeInlined.glsl Align default values of GrShaderCaps with StandaloneShaderCaps. 2020-09-16 15:16:37 +00:00
SwizzleCanBeInlinedDirectly.glsl Revert "Eliminate inliner temporary variables for functions with a single exit." 2020-12-16 18:24:57 +00:00
TernaryResultsCannotBeInlined.glsl Align default values of GrShaderCaps with StandaloneShaderCaps. 2020-09-16 15:16:37 +00:00
TernaryTestCanBeInlined.glsl Revert "Eliminate inliner temporary variables for functions with a single exit." 2020-12-16 18:24:57 +00:00
TrivialArgumentsInlineDirectly.glsl Avoid creating unnecessary scopes during inlining. 2020-12-15 21:11:45 +00:00
WhileBodyMustBeInlinedIntoAScope.glsl Revert "Eliminate inliner temporary variables for functions with a single exit." 2020-12-16 18:24:57 +00:00
WhileTestCannotBeInlined.glsl Align default values of GrShaderCaps with StandaloneShaderCaps. 2020-09-16 15:16:37 +00:00