]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: eliminate dead code
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 9 Nov 2018 19:45:04 +0000 (11:45 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 9 Nov 2018 19:57:57 +0000 (19:57 +0000)
commit78c0e1f81d4052f8ca5a50e4e7c5bb35ddec6519
tree393b3191358c44337f954673726027688bd130dc
parent4ae49b592110055d2461c708bc2b85b049deb535
cmd/compile: eliminate dead code

During walkexpr, we were assessing whether shifts were bounded.
However, that information was dropped on the floor during SSA conversion.
The SSA backend already finds all bounded shifts that walkexpr could have,
and at negligible extra cost (0.02% in alloc, CPU undetectable).

Change-Id: Ieda1af1a2a3ec99bfdc2b0b704c9b80ce8a34486
Reviewed-on: https://go-review.googlesource.com/c/148897
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/walk.go