]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix offset-generator for storeOneLoad
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Sat, 28 Aug 2021 08:27:55 +0000 (15:27 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Sat, 28 Aug 2021 17:05:43 +0000 (17:05 +0000)
commit6df3aac4ae8d0ca695751ef828a500cd438b00f9
treeef80cd0c61a1ac351bdcba8e9619356c7c802a13
parent5afa5554289c91706ef6244b24ccf91181123b68
cmd/compile: fix offset-generator for storeOneLoad

storeOneLoad decompose Load that is then stored, the offset value must
be created on the same block with the Load to be dominated, otherwise,
it's unsafe if one does not dominate the other.

Fixes #48026

Change-Id: Iee5e6c5d3e1b09862afe4e65f7bcd771b4c57367
Reviewed-on: https://go-review.googlesource.com/c/go/+/345434
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/expand_calls.go
test/fixedbugs/issue48026.go [new file with mode: 0644]