]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: make memcombine pass a bit more robust to reassociation of exprs
authorKeith Randall <khr@golang.org>
Tue, 9 May 2023 20:25:40 +0000 (13:25 -0700)
committerKeith Randall <khr@golang.org>
Tue, 16 May 2023 19:13:26 +0000 (19:13 +0000)
commit6042a062dc2556a0a1c06d3b85b6c080644da04e
tree8e7e0c857c322ef3411cd34e486c17e87778a1ab
parent6fc5e7d4b52986f82ec25d5993ff7f8bde8b61f5
cmd/compile: make memcombine pass a bit more robust to reassociation of exprs

Be more liberal about expanding the OR tree. Handle any tree shape
instead of a fully left or right associative tree.

Also remove tail feature, it isn't ever needed.

Change-Id: If16bebef94b952a604d6069e9be3d9129994cb6f
Reviewed-on: https://go-review.googlesource.com/c/go/+/494056
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Ryan Berger <ryanbberger@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/memcombine.go
test/codegen/memcombine.go