]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add a test for writebarrier pass with single-block loop
authorCherry Zhang <cherryyz@google.com>
Tue, 14 Feb 2017 02:27:53 +0000 (21:27 -0500)
committerCherry Zhang <cherryyz@google.com>
Thu, 16 Mar 2017 14:24:52 +0000 (14:24 +0000)
commitd75925d6bad2576bd80c442ff3b23ba22ffb2c68
tree31ea8b9bce8a0999513f7007b5bbdd5f2f693586
parent1b85300602f8530e505ad5b8b033a15f5521d1a7
cmd/compile: add a test for writebarrier pass with single-block loop

The old writebarrier implementation fails to handle single-block
loop where a memory Phi value depends on the write barrier store
in the same block. The new implementation (CL 36834) doesn't have
this problem. Add a test to ensure it.

Fix #19067.

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