]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: ensure alignment for Zero and Move in SSA for ARM
authorCherry Zhang <cherryyz@google.com>
Mon, 27 Jun 2016 20:54:57 +0000 (16:54 -0400)
committerCherry Zhang <cherryyz@google.com>
Sat, 2 Jul 2016 22:22:12 +0000 (22:22 +0000)
commitf55317828b65dc35bec511e9225d9a5761a12cac
treeffe2779cf54c0de3f0cedd0ac326c98be729a6c8
parent95427d2549a613fd1fb925ed118194488d6ec6bb
[dev.ssa] cmd/compile: ensure alignment for Zero and Move in SSA for ARM

Encode the size and the alignment into AuxInt of Zero and Move ops.
On AMD64, we simply don't look at the alignment. On ARM and PPC64, we
only generate aligned stores.

Updates #15365.

Change-Id: Ifdcc205c364f67c4516b9adebfe7d50d223b6863
Reviewed-on: https://go-review.googlesource.com/24511
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
14 files changed:
src/cmd/compile/internal/arm/ssa.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/deadstore.go
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/gen/ARM.rules
src/cmd/compile/internal/ssa/gen/ARMOps.go
src/cmd/compile/internal/ssa/gen/PPC64.rules
src/cmd/compile/internal/ssa/gen/generic.rules
src/cmd/compile/internal/ssa/op.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewriteAMD64.go
src/cmd/compile/internal/ssa/rewriteARM.go
src/cmd/compile/internal/ssa/rewritePPC64.go
src/cmd/compile/internal/ssa/rewritegeneric.go