]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use right shifts to eliminate bounds checks
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 19 May 2017 22:10:10 +0000 (15:10 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Wed, 9 Aug 2017 00:21:25 +0000 (00:21 +0000)
commit561b147e4be4732c85f2725c7e12ab0a3577c962
treef17963e2ebb0541f95f93dbbdd69a6584f0d31e5
parent2fe53d8d55e93602a8fcda7bf78385d93da58da4
cmd/compile: use right shifts to eliminate bounds checks

These rules trigger a few times during make.bash.
When we eliminate boundedness checks from walk.go
we'll rely on them more heavily.

Updates #19692

Change-Id: I268c36ae2f1401c68dd685b15f2d30f5d6971176
Reviewed-on: https://go-review.googlesource.com/43775
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/generic.rules
src/cmd/compile/internal/ssa/rewritegeneric.go