forked from google/skia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect and eliminate redundant pop-push with swizzles.
The previous implementation would not detect a redundant pop-push in cases where the follow-up push was split up into multiple parts. This does not come up much in our test corpus, but it will generate better code for premul: c = (anything); // pops stack to `c.rgba` c.rgb *= c.a; // pushes `c.rgb`, `c.a` --> can reuse stack I noticed this while checking the generated code for the runtime_filtercolor4f benchmark. Change-Id: I11726065ad799f8525c3b69efafc0b5f632a261f Reviewed-on: https://skia-review.googlesource.com/c/skia/+/684296 Commit-Queue: John Stiles <[email protected]> Auto-Submit: John Stiles <[email protected]> Commit-Queue: Brian Osman <[email protected]> Reviewed-by: Brian Osman <[email protected]>
- Loading branch information
1 parent
0102755
commit 05d09f2
Showing
2 changed files
with
29 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters