diff options
author | Cherry Zhang <cherryyz@google.com> | 2016-06-27 16:54:57 -0400 |
---|---|---|
committer | Cherry Zhang <cherryyz@google.com> | 2016-07-02 22:22:12 +0000 |
commit | f55317828b65dc35bec511e9225d9a5761a12cac (patch) | |
tree | ffe2779cf54c0de3f0cedd0ac326c98be729a6c8 /src/cmd/compile/internal/ssa/deadstore.go | |
parent | 95427d2549a613fd1fb925ed118194488d6ec6bb (diff) | |
download | go-f55317828b65dc35bec511e9225d9a5761a12cac.tar.gz go-f55317828b65dc35bec511e9225d9a5761a12cac.zip |
[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>
Diffstat (limited to 'src/cmd/compile/internal/ssa/deadstore.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/deadstore.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ssa/deadstore.go b/src/cmd/compile/internal/ssa/deadstore.go index 5129c171bb..a1fc5fd0bb 100644 --- a/src/cmd/compile/internal/ssa/deadstore.go +++ b/src/cmd/compile/internal/ssa/deadstore.go @@ -89,7 +89,7 @@ func dse(f *Func) { } else { // zero addr mem sz := v.Args[0].Type.ElemType().Size() - if v.AuxInt != sz { + if SizeAndAlign(v.AuxInt).Size() != sz { f.Fatalf("mismatched zero/store sizes: %d and %d [%s]", v.AuxInt, sz, v.LongString()) } |