Skip to content

Commit 08cdfd0

Browse files
committed
cmd/compile: reset memcombine correctly between basic blocks
Not sure why this bug didn't cause a complete failure, but it certainly makes for doing a lot more work than is necessary. Fixes #62604 Change-Id: If0be4acb6eafc3d7eeb42d2f4263c21b4e6e1c7d Reviewed-on: https://go-review.googlesource.com/c/go/+/527699 Reviewed-by: David Chase <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]>
1 parent 98f0509 commit 08cdfd0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/cmd/compile/internal/ssa/memcombine.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ func memcombineLoads(f *Func) {
4141
}
4242
}
4343
for _, b := range f.Blocks {
44+
order = order[:0]
4445
for _, v := range b.Values {
4546
if v.Op != OpOr16 && v.Op != OpOr32 && v.Op != OpOr64 {
4647
continue

0 commit comments

Comments
 (0)