• Keith Randall's avatar
    cmd/compile: strength reduce *24 · 77b527e2
    Keith Randall authored
    We use *24 a lot for pointer arithmetic when accessing slices
    of slices ([][]T).  Rewrite to use an LEA and a shift.
    The shift will likely be free, as it often gets folded into
    an indexed load/store.
    
    Update #14606
    
    Change-Id: Ie0bf6dc1093876efd57e88ce5f62c26a9bf21cec
    Reviewed-on: https://go-review.googlesource.com/20567
    Run-TryBot: Keith Randall <khr@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarTodd Neal <todd@tneal.org>
    77b527e2
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...