skia2/resources/sksl
John Stiles 34c098d7f8 Add SkSL test demonstrating missed optimization with +=.
Currently, SkSL is able to constant-propagate `x = x + constant` into
`x = constant` when the starting value of x is known. However, it is not
able to do the same optimization for `x += constant`. This test
demonstrates that once += is encountered, we lose track of x's value and
can no longer propagate its value.

(This is equally true of all the op-assignment operators, += -=
*= /= etc.)

Change-Id: I3523e96baf9a73982cf3b09f0d23b95adacf106b
Bug: skia:11192
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/368248
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-02-09 19:17:26 +00:00
..
blend
errors Added detection for non-constant-folded divide by zero errors in 2021-02-06 03:13:16 +00:00
folding Add SkSL test demonstrating missed optimization with +=. 2021-02-09 19:17:26 +00:00
fp Add bool2/bool3/bool4 to GrSLType. 2021-02-02 00:25:29 +00:00
glsl
inliner
intrinsics Revert "Add intrinsic tests for mod() and fract()." 2021-01-30 13:38:31 +00:00
metal Add default uniform binding value for Metal/SPIR-V. 2021-01-28 19:23:49 +00:00
runtime
runtime_errors Reject array-typed vardecls and array ctors in strict ES2 mode. 2021-02-04 19:36:50 +00:00
shared Migrate the last SkSL tests in shared/ to dm. 2021-02-08 21:37:48 +00:00
spirv Improve memory layout handling in SPIRV generator 2021-01-22 22:16:48 +00:00
workarounds
README.txt

This directory contains source files for testing skslc compilation.
The compiled output files are in the /tests/sksl/ directory.