Skip to content

Commit 85f93c8

Browse files
aclementsmdempsky
authored andcommitted
cmd/compile: fix some plive comments
The liveness analysis no longer directly emits PCDATA. Fix stale comments that say so. Change-Id: Id26b112ddf4c13a12ebf766f64bf57c68fbfe3ef Reviewed-on: https://go-review.googlesource.com/67691 Run-TryBot: Austin Clements <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]>
1 parent e130dcf commit 85f93c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cmd/compile/internal/gc/plive.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ func (lv *Liveness) epilogue() {
692692
for _, b := range lv.f.Blocks {
693693
be := lv.blockEffects(b)
694694

695-
// walk backward, emit pcdata and populate the maps
695+
// walk backward, construct maps at each safe point
696696
index := int32(be.lastbitmapindex)
697697
if index < 0 {
698698
// the first block we encounter should have the ATEXT so
@@ -1012,7 +1012,8 @@ Outer:
10121012
}
10131013
lv.livevars = lv.livevars[:uniq]
10141014

1015-
// Rewrite PCDATA instructions to use new numbering.
1015+
// Record compacted stack map indexes for each value.
1016+
// These will later become PCDATA instructions.
10161017
lv.showlive(nil, lv.livevars[0])
10171018
pos := 1
10181019
lv.stackMapIndex = make(map[*ssa.Value]int)

0 commit comments

Comments
 (0)