]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: ensure args are live in tail calls for LR machines
authorCherry Zhang <cherryyz@google.com>
Wed, 21 Sep 2016 22:53:31 +0000 (18:53 -0400)
committerCherry Zhang <cherryyz@google.com>
Thu, 22 Sep 2016 19:15:09 +0000 (19:15 +0000)
commit3dfb92f254ed4f94e3c98a789c171a1cd9c2563d
treeaf34c22d69cd8b7829707d63ee3183e79d8bbdd9
parent254169d7bb6f96409ba4b405c80d28deefdb000b
cmd/compile: ensure args are live in tail calls for LR machines

On link-register machines we uses RET (sym), instead of JMP (sym),
for tail call (so the assembler knows and may rewrite it to
restore link register if necessary). Add RET to the analysis.

Fixes #17186.
Fixes #16016 on link-register machines.

Change-Id: I8690ac57dd9d49beeea76a5f291988e9a1d3afe5
Reviewed-on: https://go-review.googlesource.com/29570
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/plive.go