• 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
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...