]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: clarify Node.NonNil and Node.Bounded
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 17 Apr 2020 04:25:15 +0000 (21:25 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 20 Apr 2020 16:35:40 +0000 (16:35 +0000)
commit5abf5f831e4a76fb8875c4fa5b6b7436f51ecdf8
tree43a6f203ab04bbdea34ddea1e8d66c60c8d41437
parent1f0738c1577a55a6b7229b821ddfe762b84771d0
cmd/compile: clarify Node.NonNil and Node.Bounded

Node.NonNil and Node.Bounded were a bit muddled. This led to #38496.
This change clarifies and documents them.

It also corrects one misuse.
However, since ssa conversion doesn't make full use of the bounded hint,
this correction doesn't change any generated code.
The next change will fix that.

Passes toolstash-check.

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