]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: optimize x & 1 != 0 to x & 1 on amd64
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 23 Apr 2020 07:21:59 +0000 (00:21 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 23 Apr 2020 17:52:28 +0000 (17:52 +0000)
commite7c187369149741f96c445c153be4fc6475bc365
treee3a9440e00e47c9bb3a00980540ecf97c3dff222
parent917aa72c1438c64e593d68a779892b97012b4779
cmd/compile: optimize x & 1 != 0 to x & 1 on amd64

Triggers a handful of times in std+cmd.

Change-Id: I9bb8ce9a5f8bae2547cb61157cd8f256e1b63e76
Reviewed-on: https://go-review.googlesource.com/c/go/+/229602
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/rewriteAMD64.go
test/codegen/bool.go [new file with mode: 0644]