From e81263c79153e98c553c17f7c0417364bea827f5 Mon Sep 17 00:00:00 2001 From: liu-xuewen Date: Wed, 2 Nov 2022 02:07:12 +0000 Subject: [PATCH] cmd/compile: remove issueSpill Remove the useless issueSpill and continue directly. Change-Id: I085e566be6f7200235e1bfe1f56a8e959316386a GitHub-Last-Rev: 84db90cf34b135f9830d03effc3faa685fd8626e GitHub-Pull-Request: golang/go#56520 Reviewed-on: https://go-review.googlesource.com/c/go/+/447195 Run-TryBot: Keith Randall Reviewed-by: Bryan Mills Auto-Submit: Keith Randall TryBot-Result: Gopher Robot Reviewed-by: Keith Randall Reviewed-by: Keith Randall --- src/cmd/compile/internal/ssa/regalloc.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cmd/compile/internal/ssa/regalloc.go b/src/cmd/compile/internal/ssa/regalloc.go index a25688fbd1..7c339512ce 100644 --- a/src/cmd/compile/internal/ssa/regalloc.go +++ b/src/cmd/compile/internal/ssa/regalloc.go @@ -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 @@ -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 @@ -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