Fix loop-unrolling for single-iteration inclusive reverse loops.
Loops of the form `for (int x = K; x >= K; --x) {...}` would
previously be detected as zero-iteration, when they actually
should run for a single iteration.
Change-Id: I9b16aea8028b7b1645f4c2599b810e2a60ff0450
Bug: b/297839943
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/748303
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
5 files changed