From: Austin Clements Date: Thu, 5 Apr 2018 21:35:13 +0000 (-0400) Subject: cmd/compile: update some liveness comments X-Git-Tag: go1.11beta1~741 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c1a466b158d5bfa47993d52e5151588d23c45ab0;p=gostls13.git cmd/compile: update some liveness comments These refer to old function names. Change-Id: Ic4507ff836b442e953a21c8a2d09def54e1e43a7 Reviewed-on: https://go-review.googlesource.com/108495 Run-TryBot: Austin Clements TryBot-Result: Gobot Gobot Reviewed-by: David Chase --- diff --git a/src/cmd/compile/internal/gc/plive.go b/src/cmd/compile/internal/gc/plive.go index 03998e6790..310f25c17e 100644 --- a/src/cmd/compile/internal/gc/plive.go +++ b/src/cmd/compile/internal/gc/plive.go @@ -86,9 +86,9 @@ import ( // BlockEffects summarizes the liveness effects on an SSA block. type BlockEffects struct { - lastbitmapindex int // for livenessepilogue + lastbitmapindex int // for Liveness.epilogue - // Computed during livenessprologue using only the content of + // Computed during Liveness.prologue using only the content of // individual blocks: // // uevar: upward exposed variables (used before set in block) @@ -98,7 +98,7 @@ type BlockEffects struct { varkill bvec avarinit bvec - // Computed during livenesssolve using control flow information: + // Computed during Liveness.solve using control flow information: // // livein: variables live at block entry // liveout: variables live at block exit @@ -648,7 +648,7 @@ func (lv *Liveness) epilogue() { be := lv.blockEffects(b) // Compute avarinitany and avarinitall for entry to block. - // This duplicates information known during livenesssolve + // This duplicates information known during Liveness.solve // but avoids storing two more vectors for each block. lv.avarinitanyall(b, any, all)