]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix optimization of Zero newobject on amd64p32
authorCherry Zhang <cherryyz@google.com>
Fri, 3 Mar 2017 18:53:13 +0000 (13:53 -0500)
committerCherry Zhang <cherryyz@google.com>
Fri, 3 Mar 2017 20:36:31 +0000 (20:36 +0000)
commit9b480521d84654c90f6030675e1e10655b180274
tree87bfaab8bd5391d5c3ba0a111aeeb3c9bd6beb1a
parentd8a0f748013dae2a731a9a37f94ab0e37d096ee2
cmd/compile: fix optimization of Zero newobject on amd64p32

On amd64p32, PtrSize and RegSize don't agree, and function return
value is aligned with RegSize. Fix this rule. Other architectures
are not affected, where PtrSize and RegSize are the same.

Change-Id: If187d3dfde3dc3b931b8e97db5eeff49a781551b
Reviewed-on: https://go-review.googlesource.com/37720
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/gen/generic.rules
src/cmd/compile/internal/ssa/rewritegeneric.go