]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove isUintXPowerOfTwo functions
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Mon, 4 Aug 2025 12:17:10 +0000 (19:17 +0700)
committerGopher Robot <gobot@golang.org>
Tue, 5 Aug 2025 15:37:45 +0000 (08:37 -0700)
commit2b622b05a97bf785e97a3c241270cb6580d65ef7
treec78b44f25bd228c9aec69239ab0041b19b6f5a87
parent72147ffa7556b2cd694a58ab562cb7e5b5c0514e
cmd/compile: remove isUintXPowerOfTwo functions

And use the generic version instead.

While at it, also correct the corresponding rules to use logXu variants
instead of logXu, following discussion in CL 689815.

Change-Id: Iba85d14ff0e26d45a126764e7bd5702586358d23
Reviewed-on: https://go-review.googlesource.com/c/go/+/692917
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/compile/internal/ssa/_gen/AMD64.rules
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/ssa/rewriteAMD64.go