]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile/internal/ssa: compute outarg size correctly
authorKeith Randall <khr@golang.org>
Tue, 14 Jul 2015 20:20:08 +0000 (13:20 -0700)
committerKeith Randall <khr@golang.org>
Thu, 16 Jul 2015 21:06:13 +0000 (21:06 +0000)
commit3dcc424be70b9d1824f756ab81f97508ae1a7738
treecd638559b18418e9d17ab872cc9dbf3abf905b5f
parent8adc905a10ffe26204547c95b6d3abe5bf6f9053
[dev.ssa] cmd/compile/internal/ssa: compute outarg size correctly

Keep track of the outargs size needed at each call.
Compute the size of the outargs section of the stack frame.  It's just
the max of the outargs size at all the callsites in the function.

Change-Id: I3d0640f654f01307633b1a5f75bab16e211ea6c0
Reviewed-on: https://go-review.googlesource.com/12178
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/TODO
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/rewriteAMD64.go
src/cmd/compile/internal/ssa/stackalloc.go