aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/stackalloc.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2016-09-17 15:04:36 -0700
committerKeith Randall <khr@golang.org>2016-09-19 02:37:08 +0000
commit6129f37367686edf7c2732fbb5300d5f28203743 (patch)
tree18dfa388342ea4868caab33c299be065d558be76 /src/cmd/compile/internal/ssa/stackalloc.go
parent892d146a7aae17e5fe22e04b16ba4da7e3d8c767 (diff)
downloadgo-6129f37367686edf7c2732fbb5300d5f28203743.tar.xz
cmd/compile: inline convT2{I,E} when result doesn't escape
No point in calling a function when we can build the interface using a known type (or itab) and the address of a local. Get rid of third arg (preallocated stack space) to convT2{I,E}. Makes go binary smaller by 0.2% benchmark old ns/op new ns/op delta BenchmarkEfaceInteger-8 16.7 10.1 -39.52% Update #17118 Update #15375 Change-Id: I9724a1f802bfa1e3957bf1856b55558278e198a2 Reviewed-on: https://go-review.googlesource.com/29373 Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/stackalloc.go')
0 files changed, 0 insertions, 0 deletions