]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile : replace load of store with a copy
authorTodd Neal <todd@tneal.org>
Sat, 13 Feb 2016 23:37:19 +0000 (17:37 -0600)
committerTodd Neal <todd@tneal.org>
Tue, 23 Feb 2016 01:18:31 +0000 (01:18 +0000)
commit9dc1334cc76eda231bd776e78d678649e630563b
tree3c4f0d96ab3b06035642bd91750ab070f9469191
parentc3db6c95b6f933e1489565aa65a94edc880a3f3d
[dev.ssa] cmd/compile : replace load of store with a copy

Loads of stores from the same pointer with compatible types
can be replaced with a copy.

Change-Id: I514b3ed8e5b6a9c432946880eac67a51b1607932
Reviewed-on: https://go-review.googlesource.com/19743
Run-TryBot: Todd Neal <todd@tneal.org>
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/rewrite.go
src/cmd/compile/internal/ssa/rewritegeneric.go