]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: tweak inliners handling of coverage counter updates
authorThan McIntosh <thanm@google.com>
Mon, 10 Oct 2022 17:39:30 +0000 (13:39 -0400)
committerThan McIntosh <thanm@google.com>
Mon, 10 Oct 2022 19:56:43 +0000 (19:56 +0000)
commit4a459cbbad7b9528e5f569157b157800866a4fb8
treeb064d792f395467eeed5e0aa0f83c32f56531581
parent742e0a9720c04b6be694ad8ea8f7831ffa606e40
cmd/compile: tweak inliners handling of coverage counter updates

This patch fixes up a bug in the inliner's special case code for
coverage counter updates, which was not properly working for
-covermode=atomic compilations.

Updates #56044.

Change-Id: I9e309312b123121c3df02862623bdbab1f6c6a4b
Reviewed-on: https://go-review.googlesource.com/c/go/+/441858
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/inline/inl.go
src/cmd/compile/internal/test/inl_test.go
src/runtime/coverage/emitdata_test.go