Skip to content

cmd/compile: optimize x > a && x < b to uint(x - a) < b - a when a, b are constants and b > a #16697

@minux

Description

@minux

https://golang.org/cl/27032 demonstrated that by doing this
transformation, ~10% improvement can be seen in benchmarks
from the unicode package

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions