]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add unsigned power-of-two detector
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 23 Jul 2025 11:48:18 +0000 (18:48 +0700)
committerGopher Robot <gobot@golang.org>
Tue, 29 Jul 2025 23:22:37 +0000 (16:22 -0700)
commitf3582fc80e19050d915ac9621bbeecef78c0548e
tree105a69f920955c8fdc8831b3ef35468ba7d964a9
parentf7d167fe710501f687fad006125f4ec60be42c35
cmd/compile: add unsigned power-of-two detector

Fixes #74485

Change-Id: Ia22a58ac43bdc36c8414d555672a3a3eafc749ca
Reviewed-on: https://go-review.googlesource.com/c/go/+/689815
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/ssa/_gen/generic.rules
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/ssa/rewritegeneric.go
test/codegen/issue74485.go [new file with mode: 0644]