]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fold offsets into memory ops
authorGiovanni Bajo <rasky@develer.com>
Fri, 2 Mar 2018 01:24:41 +0000 (02:24 +0100)
committerGiovanni Bajo <rasky@develer.com>
Sun, 4 Mar 2018 22:53:50 +0000 (22:53 +0000)
commit29fcd57a9f4b345bf155f04c0f5b4ccf7a61401e
tree3c6cee90fe24f9ed4dab5dfdeb96d1e5e1d13014
parentee58eccc565c0871d3f16fd702fd8649a3fb61ea
cmd/compile: fold offsets into memory ops

Fold offsets for:

  {ADD,SUB,MUL}[SD]mem
  ADD[LQ]constmem
  {ADD,SUB,AND,OR,XOR}[LQ]mem

Cumulatively, the rules trigger ~900 times in all.bash.

Fixes #23325

Change-Id: If6c701f68fa0b57907a353a07a516b914127d0d8
Reviewed-on: https://go-review.googlesource.com/98035
Run-TryBot: Giovanni Bajo <rasky@develer.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/rewriteAMD64.go