]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ssa: refactor ARM64 address folding
authorMatthew Dempsky <mdempsky@google.com>
Wed, 12 Apr 2017 18:24:03 +0000 (11:24 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 12 Apr 2017 21:21:38 +0000 (21:21 +0000)
commit4eb48a336e5a7ac519611cf8360909e0ac37f018
treefd66f3d2bc621eaa1308db94b2ec8a012743d3b5
parent2e60882fc780378af58c12d82ff7f62ed88f4ee0
cmd/compile/internal/ssa: refactor ARM64 address folding

These patterns are the only uses of isArg and isAuto, and they all
follow a common pattern too. Extract out so that we can more easily
tweak the interface for isArg/isAuto.

Passes toolstash -cmp for linux/arm64.

Change-Id: I9c509dabdc123c93cb1ad2f34fe8c12a9f313f6d
Reviewed-on: https://go-review.googlesource.com/40490
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/ssa/gen/ARM64.rules
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/ssa/rewriteARM64.go