]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: update some liveness comments
authorAustin Clements <austin@google.com>
Thu, 5 Apr 2018 21:35:13 +0000 (17:35 -0400)
committerAustin Clements <austin@google.com>
Fri, 20 Apr 2018 18:46:07 +0000 (18:46 +0000)
These refer to old function names.

Change-Id: Ic4507ff836b442e953a21c8a2d09def54e1e43a7
Reviewed-on: https://go-review.googlesource.com/108495
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/plive.go

index 03998e67907b432fa49db92c78da9a501feb33f1..310f25c17eca81f824a27f32fa6d468279cebfb0 100644 (file)
@@ -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)