]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: identical values are the same pointer
authorKeith Randall <khr@golang.org>
Wed, 24 Feb 2016 20:58:47 +0000 (12:58 -0800)
committerKeith Randall <khr@golang.org>
Wed, 24 Feb 2016 22:21:01 +0000 (22:21 +0000)
commita5325761cd42f2a10566fd421f8c8b0189bedc18
tree13b1f33c7b5b6f51a92e767d1603c0c0ca76195b
parented737fd8cdc1a668027bb5f5dac8879afabcca3b
[dev.ssa] cmd/compile: identical values are the same pointer

Forgot the obvious case.  Allows us to remove the load in:

func f(p *int, x int) int {
*p = x + 5
return *p
}

Change-Id: I93686d8240bab3a1d166b88e224cf71e3d947aef
Reviewed-on: https://go-review.googlesource.com/19905
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/ssa/rewrite.go