]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: make sure to keep offset and sym of MOV opcodes.
authorKeith Randall <khr@golang.org>
Mon, 24 Aug 2015 04:14:25 +0000 (21:14 -0700)
committerKeith Randall <khr@golang.org>
Tue, 25 Aug 2015 04:33:49 +0000 (04:33 +0000)
commit01490eb96cb0ff15d6b749fc11db99f53891be61
tree42c93c3da2c17388c8f1d5d962f2dd6ca37c4f1c
parent5844603f143a859902386a8d70ac6abb732f4ccd
[dev.ssa] cmd/compile: make sure to keep offset and sym of MOV opcodes.

MOVXload and MOVXstore opcodes have both an auxint offset
and an aux offset (a symbol name, like a local or arg or global).
Make sure we keep those values during rewrites.

Change-Id: Ic9fd61bf295b5d1457784c281079a4fb38f7ad3b
Reviewed-on: https://go-review.googlesource.com/13849
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/ssa/rewriteAMD64.go