Commit c1a466b1 authored by Austin Clements's avatar Austin Clements

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 <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarDavid Chase <drchase@google.com>
parent d7583636
...@@ -86,9 +86,9 @@ import ( ...@@ -86,9 +86,9 @@ import (
// BlockEffects summarizes the liveness effects on an SSA block. // BlockEffects summarizes the liveness effects on an SSA block.
type BlockEffects struct { 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: // individual blocks:
// //
// uevar: upward exposed variables (used before set in block) // uevar: upward exposed variables (used before set in block)
...@@ -98,7 +98,7 @@ type BlockEffects struct { ...@@ -98,7 +98,7 @@ type BlockEffects struct {
varkill bvec varkill bvec
avarinit bvec avarinit bvec
// Computed during livenesssolve using control flow information: // Computed during Liveness.solve using control flow information:
// //
// livein: variables live at block entry // livein: variables live at block entry
// liveout: variables live at block exit // liveout: variables live at block exit
...@@ -648,7 +648,7 @@ func (lv *Liveness) epilogue() { ...@@ -648,7 +648,7 @@ func (lv *Liveness) epilogue() {
be := lv.blockEffects(b) be := lv.blockEffects(b)
// Compute avarinitany and avarinitall for entry to block. // 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. // but avoids storing two more vectors for each block.
lv.avarinitanyall(b, any, all) lv.avarinitanyall(b, any, all)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment