]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile/internal/ssa: enforce load-store ordering in scheduler
authorKeith Randall <khr@golang.org>
Mon, 10 Aug 2015 18:10:53 +0000 (11:10 -0700)
committerKeith Randall <khr@golang.org>
Mon, 10 Aug 2015 20:39:15 +0000 (20:39 +0000)
commite98edc88c9d8453a22bfe3753d0f49510de0cf83
treedf80d11fa491b70a509b274a85a51063bd0b007e
parent0d91018082bb078f6c84388327375f40f231a8d4
[dev.ssa] cmd/compile/internal/ssa: enforce load-store ordering in scheduler

We must make sure that all loads that use a store are scheduled
before the next store.  Add additional dependency edges to the
value graph to enforce this constraint.

Change-Id: Iab83644f68bc4c30637085b82ca7467b9d5513a5
Reviewed-on: https://go-review.googlesource.com/13470
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/testdata/loadstore_ssa.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/schedule.go