Skip to content

Commit e81263c

Browse files
liu-xuewengopherbot
authored andcommitted
cmd/compile: remove issueSpill
Remove the useless issueSpill and continue directly. Change-Id: I085e566be6f7200235e1bfe1f56a8e959316386a GitHub-Last-Rev: 84db90c GitHub-Pull-Request: #56520 Reviewed-on: https://go-review.googlesource.com/c/go/+/447195 Run-TryBot: Keith Randall <[email protected]> Reviewed-by: Bryan Mills <[email protected]> Auto-Submit: Keith Randall <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Keith Randall <[email protected]>
1 parent a367981 commit e81263c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/cmd/compile/internal/ssa/regalloc.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ func (s *regAllocState) regalloc(f *Func) {
13011301
}
13021302
b.Values = append(b.Values, v)
13031303
s.advanceUses(v)
1304-
goto issueSpill
1304+
continue
13051305
}
13061306
if v.Op == OpGetG && s.f.Config.hasGReg {
13071307
// use hardware g register
@@ -1311,7 +1311,7 @@ func (s *regAllocState) regalloc(f *Func) {
13111311
s.assignReg(s.GReg, v, v)
13121312
b.Values = append(b.Values, v)
13131313
s.advanceUses(v)
1314-
goto issueSpill
1314+
continue
13151315
}
13161316
if v.Op == OpArg {
13171317
// Args are "pre-spilled" values. We don't allocate
@@ -1669,8 +1669,6 @@ func (s *regAllocState) regalloc(f *Func) {
16691669
v.SetArg(i, a) // use register version of arguments
16701670
}
16711671
b.Values = append(b.Values, v)
1672-
1673-
issueSpill:
16741672
}
16751673

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

0 commit comments

Comments
 (0)