aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/opt.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2016-08-08 11:26:25 -0700
committerKeith Randall <khr@golang.org>2016-08-09 15:48:26 +0000
commit69a755b6020e20b7c424628e9c1ba4e28d311373 (patch)
tree498d6f694dcfcd23e835ec3f6d1e3bc1cdf430e8 /src/cmd/compile/internal/ssa/opt.go
parentf3b4e785164d6047947931724f54139a42b5293e (diff)
downloadgo-69a755b6020e20b7c424628e9c1ba4e28d311373.tar.gz
go-69a755b6020e20b7c424628e9c1ba4e28d311373.zip
[dev.ssa] cmd/compile: port SSA backend to amd64p32
It's not a new backend, just a PtrSize==4 modification of the existing AMD64 backend. Change-Id: Icc63521a5cf4ebb379f7430ef3f070894c09afda Reviewed-on: https://go-review.googlesource.com/25586 Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/opt.go')
-rw-r--r--src/cmd/compile/internal/ssa/opt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ssa/opt.go b/src/cmd/compile/internal/ssa/opt.go
index f6a904abca..f211488cd7 100644
--- a/src/cmd/compile/internal/ssa/opt.go
+++ b/src/cmd/compile/internal/ssa/opt.go
@@ -11,7 +11,7 @@ func opt(f *Func) {
func dec(f *Func) {
applyRewrite(f, rewriteBlockdec, rewriteValuedec)
- if f.Config.IntSize == 4 {
+ if f.Config.IntSize == 4 && f.Config.arch != "amd64p32" {
applyRewrite(f, rewriteBlockdec64, rewriteValuedec64)
}
}