Skip to content

cmd/compile: remove issueSpill #56520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/cmd/compile/internal/ssa/regalloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ func (s *regAllocState) regalloc(f *Func) {
}
b.Values = append(b.Values, v)
s.advanceUses(v)
goto issueSpill
continue
}
if v.Op == OpGetG && s.f.Config.hasGReg {
// use hardware g register
Expand All @@ -1311,7 +1311,7 @@ func (s *regAllocState) regalloc(f *Func) {
s.assignReg(s.GReg, v, v)
b.Values = append(b.Values, v)
s.advanceUses(v)
goto issueSpill
continue
}
if v.Op == OpArg {
// Args are "pre-spilled" values. We don't allocate
Expand Down Expand Up @@ -1669,8 +1669,6 @@ func (s *regAllocState) regalloc(f *Func) {
v.SetArg(i, a) // use register version of arguments
}
b.Values = append(b.Values, v)

issueSpill:
}

// Copy the control values - we need this so we can reduce the
Expand Down