commit | f0cb733b1b1c87a7c17ea365e4e1248301ffe4a6 | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Fri Jan 08 18:39:00 2021 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Mon Jan 11 15:02:27 2021 +0000 |
tree | eab63412f393c93a93b63dc0d3334509c8bb295d | |
parent | 58a8ccc59190f259d65aa9bdd3495f5de8a7f718 [diff] |
Remove redundant constantPropagate in Swizzle. Swizzle::constantPropagate is a limited form of this optimization: https://osscs.corp.google.com/skia/skia/+/master:src/sksl/SkSLCompiler.cpp;l=1159 It predates this optimization code, though. It also flattened out an unnecessary constructor that would have otherwise required an extra pass to eliminate. Updated the optimization code at L1159 to simplify away the unnecessary constructor where possible, and then removed Swizzle::constantPropagate. This has no effect on generated code. Change-Id: I0f43d5c51761965230c853f309a6ef068f9aef77 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/352120 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com>