2396fb8be5
This is particularly relevant for "vector / scalar" divides, as these end up generating an extra OpFDiv to take the reciprocal of the scalar. This meant we were generating code to calculate "literal 1 / literal N" at runtime whenever dividing vector V against scalar N. This fix moves the reciprocal calculation to compile-time. And of course, it's a valid strength reduction in all cases. Change-Id: I0986057e516120fe872e70135f1ac365155d5377 Bug: skia:11792 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/389156 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com> |
||
---|---|---|
.. | ||
android | ||
c | ||
codec | ||
core | ||
effects | ||
fonts | ||
gpu | ||
image | ||
images | ||
lazy | ||
opts | ||
pathops | ||
ports | ||
sfnt | ||
shaders | ||
sksl | ||
svg | ||
utils | ||
xml | ||
xps |