From: Josh Bleecher Snyder Date: Fri, 17 Apr 2020 05:05:35 +0000 (-0700) Subject: cmd/compile: remove superfluous SetBounded call X-Git-Tag: go1.15beta1~521 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=80e5c3b8b556c9c8010c0efd4e8d40f595743ee6;p=gostls13.git cmd/compile: remove superfluous SetBounded call The call does nothing when applied to an OLSH node. It would be unnecessary anyway, since we're shifting by a small constant. Passes toolstash-check. Change-Id: If858711f1704f44637fa0f6a4c66cbaad6db24b8 Reviewed-on: https://go-review.googlesource.com/c/go/+/228699 Run-TryBot: Josh Bleecher Snyder TryBot-Result: Gobot Gobot Reviewed-by: Matthew Dempsky Reviewed-by: Cuong Manh Le --- diff --git a/src/cmd/compile/internal/gc/walk.go b/src/cmd/compile/internal/gc/walk.go index bf12455a5d..06910450ff 100644 --- a/src/cmd/compile/internal/gc/walk.go +++ b/src/cmd/compile/internal/gc/walk.go @@ -840,7 +840,6 @@ opswitch: n.Left = cheapexpr(n.Left, init) // byteindex widens n.Left so that the multiplication doesn't overflow. index := nod(OLSH, byteindex(n.Left), nodintconst(3)) - index.SetBounded(true) if thearch.LinkArch.ByteOrder == binary.BigEndian { index = nod(OADD, index, nodintconst(7)) }