]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: layout stack frame during SSA
authorMatthew Dempsky <mdempsky@google.com>
Mon, 3 Oct 2016 19:26:25 +0000 (12:26 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 4 Oct 2016 17:07:36 +0000 (17:07 +0000)
commit8c24bff52b7d8e789382a8992af2e0adf0b491f2
tree2ed52935a2b932d7d699fa75cbb1dae52ac00f5a
parentf239196b9e1c0d58ab2067630bd1db7210eb7f6a
cmd/compile: layout stack frame during SSA

Identify live stack variables during SSA and compute the stack frame
layout earlier so that we can emit instructions with the correct
offsets upfront.

Passes toolstash/buildall.

Change-Id: I191100dba274f1e364a15bdcfdc1d1466cdd1db5
Reviewed-on: https://go-review.googlesource.com/30216
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
17 files changed:
src/cmd/compile/internal/amd64/ssa.go
src/cmd/compile/internal/arm/ssa.go
src/cmd/compile/internal/arm64/ssa.go
src/cmd/compile/internal/gc/gsubr.go
src/cmd/compile/internal/gc/pgen.go
src/cmd/compile/internal/gc/sizeof_test.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/gc/syntax.go
src/cmd/compile/internal/mips64/ssa.go
src/cmd/compile/internal/ppc64/ssa.go
src/cmd/compile/internal/s390x/ssa.go
src/cmd/compile/internal/ssa/compile.go
src/cmd/compile/internal/ssa/config.go
src/cmd/compile/internal/ssa/export_test.go
src/cmd/compile/internal/ssa/stackframe.go [new file with mode: 0644]
src/cmd/compile/internal/x86/387.go
src/cmd/compile/internal/x86/ssa.go