mirror of
https://github.com/golang/go
synced 2024-10-04 21:11:22 -06:00
cmd/compile: handle mem copies in amd64 backend
Fixes noopt builder. Change-Id: If13373b2597f0fcc9b1b2f9c860f2bd043e43c6c Reviewed-on: https://go-review.googlesource.com/22338 Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
508a424eed
commit
f8fc3710fd
@ -667,6 +667,9 @@ func ssaGenValue(s *gc.SSAGenState, v *ssa.Value) {
|
||||
p.To.Offset = v.AuxInt
|
||||
|
||||
case ssa.OpCopy, ssa.OpAMD64MOVQconvert: // TODO: use MOVQreg for reg->reg copies instead of OpCopy?
|
||||
if v.Type.IsMemory() {
|
||||
return
|
||||
}
|
||||
x := gc.SSARegNum(v.Args[0])
|
||||
y := gc.SSARegNum(v)
|
||||
if x != y {
|
||||
|
Loading…
Reference in New Issue
Block a user