]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: remove self copies in tail-call wrappers
authorCherry Mui <cherryyz@google.com>
Thu, 16 Sep 2021 17:55:45 +0000 (13:55 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 17 Sep 2021 23:21:29 +0000 (23:21 +0000)
commitf01721efb941edadc2e6a897e42919b0d68480e1
tree9415c4b5d041916eb53118e013b1193147a2b651
parent163871feb177ca0d7c690052b4cdd17bd57fcc04
cmd/compile: remove self copies in tail-call wrappers

The previous CL re-enables tail calls for method wrappers. But
with the changed IR and SSA representation, for stack arguments
it generates self copies. This CL makes the compiler detect the
self copies and remove them.

Change-Id: I7252572a1a47834f28b6706e45906e2356408e02
Reviewed-on: https://go-review.googlesource.com/c/go/+/350349
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/expand_calls.go