]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: in clobberdead mode, don't clobber slots that are live for defers
authorCherry Zhang <cherryyz@google.com>
Thu, 15 Apr 2021 03:36:14 +0000 (23:36 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 16 Apr 2021 20:56:09 +0000 (20:56 +0000)
commit9fbcba6664840ada5aaedb7f1a587d0cca1c9035
tree8e845c015cbc08b1b1681a1ae42e10a66e729f7e
parent4fb74e055595a0009f11272432c2a5047a64507b
cmd/compile: in clobberdead mode, don't clobber slots that are live for defers

There are stack slots that are kept live for defers, which are
tracked separately. Don't clobber them.

Change-Id: Ib558345758b5a4fd89c7ff8a3fe08087059add21
Reviewed-on: https://go-review.googlesource.com/c/go/+/310329
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/compile/internal/liveness/plive.go