Simplify branches when the execution mask is known.
If we know that the execution mask is all-true, then
`branch_if_no_active_lanes` can be eliminated, and
`branch_if_any_active_lanes` becomes a jump.
This improves a number of programs because we would previously
use `branch_if_no_active_lanes` before any function call. Now,
this gets optimized away if the function call occurs
unconditionally.
Change-Id: I9f82217529436b8df623cf3655c8d08a5d960af8
Bug: skia:13676
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/632558
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Arman Uguray <armansito@google.com>
19 files changed