]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use a counter to track whether writebarrier rewriting is done
authorCherry Zhang <cherryyz@google.com>
Wed, 30 Aug 2017 15:12:52 +0000 (11:12 -0400)
committerCherry Zhang <cherryyz@google.com>
Wed, 20 Sep 2017 23:57:19 +0000 (23:57 +0000)
commit99c757adb591b5fe3d94673cf7bd8b5fab9e5fce
treeb6ba3b0e816368cba3789ea52d29140e262d7503
parent93e97ef066d3aad0a51a4a54212382f04c142255
cmd/compile: use a counter to track whether writebarrier rewriting is done

Use a counter, instead of a loop, to see whether there are more
writebarrier ops in the current block that need to be rewritten.

No visible change in normal compiler speed benchmarks.

Passes toolstash -cmp on std cmd.

Fixes #20416.

Change-Id: Ifbbde23611cd668c35b8a4a3e9a92726bfe19956
Reviewed-on: https://go-review.googlesource.com/60310
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/writebarrier.go