mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/ssagen: fix misleading comment
Fix up a slightly stale comment in the part of ssa generation that zeros ambiguously live variables: with the advent of the register ABI, the ir.Func "Dcl" slice is no longer entirely sorted by frame offset, although this is still the case for the local vars in Dcl. Change-Id: I633f43d16f0d4e0b444193a6edb6b2aa1154eea7 Reviewed-on: https://go-review.googlesource.com/c/go/+/316309 Trust: Than McIntosh <thanm@google.com> Run-TryBot: Than McIntosh <thanm@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
d75fbac54d
commit
472f519fe2
1 changed files with 2 additions and 1 deletions
|
|
@ -7148,7 +7148,8 @@ func defframe(s *State, e *ssafn, f *ssa.Func) {
|
|||
// keep track of which helper registers have been zeroed.
|
||||
var state uint32
|
||||
|
||||
// Iterate through declarations. They are sorted in decreasing Xoffset order.
|
||||
// Iterate through declarations. Autos are sorted in decreasing
|
||||
// frame offset order.
|
||||
for _, n := range e.curfn.Dcl {
|
||||
if !n.Needzero() {
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue