• Ben Shi's avatar
    cmd/compile/internal: Optimization with RBIT and REV · 8577f81a
    Ben Shi authored
    By checking GOARM in ssa/gen/ARM.rules, each intermediate operator
    can be implemented via different instruction serials.
    
    It is up to the user to choose between compitability and efficiency.
    
    The Bswap32(x) is optimized to REV(x) when GOARM >= 6.
    The CTZ(x) is optimized to CLZ(RBIT x) when GOARM == 7.
    
    Change-Id: Ie9ee645fa39333fa79ad84ed4d1cefac30422814
    Reviewed-on: https://go-review.googlesource.com/35610
    Run-TryBot: Cherry Zhang <cherryyz@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarCherry Zhang <cherryyz@google.com>
    8577f81a
Name
Last commit
Last update
..
galign.go Loading commit data...
ggen.go Loading commit data...
ssa.go Loading commit data...