]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: check both syms when folding address into load/store on ARM64
authorCherry Zhang <cherryyz@google.com>
Fri, 17 Feb 2017 15:27:43 +0000 (10:27 -0500)
committerCherry Zhang <cherryyz@google.com>
Fri, 17 Feb 2017 21:23:24 +0000 (21:23 +0000)
commit3557d546090c7fedd69562c88d20767397de835d
tree1746dbb8589711bc6179d5bf2c2adea94e4bf9c0
parent3a239a6ae44163d43cde40d9b83dc1c5b7359cb2
cmd/compile: check both syms when folding address into load/store on ARM64

The rules for folding addresses into load/stores checks sym1 is
not on stack (because the stack offset is not known at that point).
But sym1 could be nil, which invalidates the check. Check merged
sym instead.

Fixes #19137.

Change-Id: I8574da22ced1216bb5850403d8f08ec60a8d1005
Reviewed-on: https://go-review.googlesource.com/37145
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/gen/ARM64.rules
src/cmd/compile/internal/ssa/rewriteARM64.go
test/fixedbugs/issue19137.go [new file with mode: 0644]