]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix scheduling of memory-producing tuple ops
authorCherry Zhang <cherryyz@google.com>
Thu, 1 Sep 2016 11:22:23 +0000 (07:22 -0400)
committerCherry Zhang <cherryyz@google.com>
Thu, 1 Sep 2016 14:25:46 +0000 (14:25 +0000)
commit1c53a1b1975adf69c594fbbd5b1ca13d783f9817
tree0d792c9749b314219d7841c5b7b7e657be51a3e0
parentf8555ea6fdbbfc32e26f351ac16138fad31a2d62
cmd/compile: fix scheduling of memory-producing tuple ops

Intrinsified atomic op produces <value,memory>. Make sure this
memory is considered in the store chain calculation.

Fixes #16948.

Change-Id: I029f164b123a7e830214297f8373f06ea0bf1e26
Reviewed-on: https://go-review.googlesource.com/28350
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/ssa/schedule.go
test/fixedbugs/issue16948.go [new file with mode: 0644]