]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: clean up ADDconst on PPC64
authorCherry Zhang <cherryyz@google.com>
Tue, 10 Oct 2017 14:26:35 +0000 (10:26 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 10 Oct 2017 15:54:13 +0000 (15:54 +0000)
commitd5a2925b7d8fd947c174967abdd5b5405cc2d53d
tree04707dfed7be94ad4b0c38843f81cbef1b37590d
parent755742399490d3e25239f504688f6b2e280366e9
cmd/compile: clean up ADDconst on PPC64

ADDconst op is no longer used for addresses, as we lower Addr to
MOVDaddr. There is no rule that produces ADDconst with a non-nil
sym. So we can remove the sym aux field in ADDconst and limit its
use for adding constant (not offset to symbol).

Passes "toolstash -cmp" on std cmd for GOARCH=ppc64 and ppc64le.

Change-Id: Icee35cdb34d8d121ad7035076dfd07595c7ff809
Reviewed-on: https://go-review.googlesource.com/69450
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
src/cmd/compile/internal/ppc64/ssa.go
src/cmd/compile/internal/ssa/gen/PPC64.rules
src/cmd/compile/internal/ssa/gen/PPC64Ops.go
src/cmd/compile/internal/ssa/opGen.go