skia /
skia /
8a10a599da12aa6a4c0e7a8257e0c9126cfdc40a Eliminate unnecessary return-mask operations.
The last `return` statement in a function would update the return
mask using `mask_off_return_mask`, but immediately afterwards, the
function would exit and restore the prior context's return mask
via `pop_return_mask`.
We now peephole-detect this case and eliminate the unnecessary
`mask_off_return_mask` op.
Change-Id: I77609679a9be5316fc92c75e50eaf4a396179e7b
Bug: skia:13676
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/631417
Reviewed-by: Arman Uguray <armansito@google.com>
Commit-Queue: Arman Uguray <armansito@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
33 files changed