]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: update comment for initLimit in prove pass
authorYoulin Feng <fengyoulin@live.com>
Sun, 3 Nov 2024 23:43:43 +0000 (07:43 +0800)
committerKeith Randall <khr@golang.org>
Fri, 8 Nov 2024 23:59:51 +0000 (23:59 +0000)
For: #70156

Change-Id: Ie39a88130f27b4b210ddbcf396cc0ddd2713d58b
Reviewed-on: https://go-review.googlesource.com/c/go/+/624855
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
src/cmd/compile/internal/ssa/prove.go

index db91e70499ed7b85a33edc33f8cac0d4b89f9e5b..c3948dc9b1d370b71620d3b1239f7ef152cc6624 100644 (file)
@@ -1569,7 +1569,8 @@ func prove(f *Func) {
 
 // initLimit sets initial constant limit for v.  This limit is based
 // only on the operation itself, not any of its input arguments. This
-// method is only called once on prove pass startup (unlike
+// method is only used in two places, once when the prove pass startup
+// and the other when a new ssa value is created, both for init. (unlike
 // flowLimit, below, which computes additional constraints based on
 // ranges of opcode arguments).
 func initLimit(v *Value) limit {