]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove some write barriers for stack writes
authorCherry Zhang <cherryyz@google.com>
Tue, 4 Oct 2016 03:01:26 +0000 (23:01 -0400)
committerCherry Zhang <cherryyz@google.com>
Mon, 10 Oct 2016 13:15:04 +0000 (13:15 +0000)
commit68331750dac5a38c5158f57ab19e3e99d11a59e3
tree3a630e8fec57dc7d0bc09086e8132a56c6ac7f92
parent2f0b8f88df33ca48494a90eea705ad092322a1ca
cmd/compile: remove some write barriers for stack writes

This, along with CL 30140, removes ~50% of stack write barriers
mentioned in issue #17330. The remaining are most due to Phi and
FwdRef, which is not resolved when building SSA. We might be
able to do it at a later stage where Phi and Copy propagations
are done, but matching an if-(store-store-call)+ sequence seems
not very pleasant.

Updates #17330.

Change-Id: Iaa36c7b1f4c4fc3dc10a27018a3b0e261094cb21
Reviewed-on: https://go-review.googlesource.com/30290
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/ssa.go