]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: improve generic rules for BCE based on AND operations.
authorGiovanni Bajo <rasky@develer.com>
Sun, 26 Feb 2017 01:54:32 +0000 (02:54 +0100)
committerKeith Randall <khr@golang.org>
Sat, 4 Mar 2017 16:13:07 +0000 (16:13 +0000)
commit4fc45ae8794eaa84505629e82997b90503c89aa2
tree4c7c0be07459b28f39dff2bdec243eb9f4de8ddc
parent4a7cf960c38d72e9f0c6f00e46e013be2a35d56e
cmd/compile: improve generic rules for BCE based on AND operations.

Match more patterns generated by the compiler where the index for
a bound check is bounded through a AND operation, with different
register sizes.

These rules trigger a dozen of times in a bootstrap.

Change-Id: Ic9fff16f21d08580f19a366c3ee1a372e58357d1
Reviewed-on: https://go-review.googlesource.com/37442
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/gen/generic.rules
src/cmd/compile/internal/ssa/rewritegeneric.go
test/checkbce.go