]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fold boolean NOT into branches
authorKeith Randall <khr@golang.org>
Tue, 18 Nov 2025 06:40:26 +0000 (22:40 -0800)
committerKeith Randall <khr@golang.org>
Tue, 18 Nov 2025 17:31:58 +0000 (09:31 -0800)
commitba634ca5c7f19105c853db5752cc0f6d3ca76e45
treec3d7685b0e82b214764e560dae42f2fdb4bf00dc
parent8806d53c106ba9d797a4383b2a49418c509a42c2
cmd/compile: fold boolean NOT into branches

Gets rid of an EOR $1 instruction.

Change-Id: Ib032b0cee9ac484329c978af9b1305446f8d5dac
Reviewed-on: https://go-review.googlesource.com/c/go/+/721501
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/ssa/_gen/ARM64.rules
src/cmd/compile/internal/ssa/rewriteARM64.go
test/codegen/bool.go