8c9ccc8ad1
A constructor like `float2(one, two)` is not a compile-time constant, so we miss optimization opportunities like folding. Constant variables inside compound constructors are now replaced when optimization is on, so this would optimize down to `float2(1.0, 2.0)` and be eligible for folding. Change-Id: I80dd421f61d4eed21278805e2dc26d198a678e52 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/404657 Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com> |
||
---|---|---|
.. | ||
ArrayIndexing.skvm | ||
ArrayIndexing.stage | ||
ConstPreservation.skvm | ||
ConstPreservation.stage | ||
ConversionConstructors.skvm | ||
ConversionConstructors.stage | ||
GlobalVariables.skvm | ||
GlobalVariables.stage | ||
GLSLTypeNames.skvm | ||
GLSLTypeNames.stage | ||
LoopFloat.skvm | ||
LoopFloat.stage | ||
LoopInt.skvm | ||
LoopInt.stage | ||
SampleWithExplicitCoord.skvm | ||
SampleWithExplicitCoord.stage | ||
VectorIndexing.skvm | ||
VectorIndexing.stage |