]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add missing s390x load with index operations
authorMichael Munday <mike.munday@ibm.com>
Thu, 9 Feb 2017 04:25:40 +0000 (23:25 -0500)
committerMichael Munday <mike.munday@ibm.com>
Thu, 2 Nov 2017 20:57:26 +0000 (20:57 +0000)
commit1ce7442ec898cb04f3cedda693816319c97aa24a
tree25417a448a080ffb21c81770dec0e87430aff8bf
parentd5960e3043768d13a0593a750cbe9dfad6138c97
cmd/compile: add missing s390x load with index operations

Prior to this CL loads with sign extension could not be replaced with
indexed loads (only loads with zero extension).

This CL also prevents large offsets (more than 20-bits) from being
merged into indexed loads. It is better to keep such offsets
separate.

Gives a small improvement in binary size, ~1.5KB from .text in cmd/go.

Change-Id: Ib848ffc2b05de6660c5ce2394ae1d1d144273e29
Reviewed-on: https://go-review.googlesource.com/36845
Run-TryBot: Michael Munday <mike.munday@ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/s390x/ssa.go
src/cmd/compile/internal/ssa/gen/S390X.rules
src/cmd/compile/internal/ssa/gen/S390XOps.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewriteS390X.go