mirror of
https://github.com/golang/go
synced 2024-09-29 20:24:34 -06:00
cmd/compile: remove issueSpill
Remove the useless issueSpill and continue directly.
Change-Id: I085e566be6f7200235e1bfe1f56a8e959316386a
GitHub-Last-Rev: 84db90cf34
GitHub-Pull-Request: golang/go#56520
Reviewed-on: https://go-review.googlesource.com/c/go/+/447195
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
a367981b4c
commit
e81263c791
@ -1301,7 +1301,7 @@ func (s *regAllocState) regalloc(f *Func) {
|
|||||||
}
|
}
|
||||||
b.Values = append(b.Values, v)
|
b.Values = append(b.Values, v)
|
||||||
s.advanceUses(v)
|
s.advanceUses(v)
|
||||||
goto issueSpill
|
continue
|
||||||
}
|
}
|
||||||
if v.Op == OpGetG && s.f.Config.hasGReg {
|
if v.Op == OpGetG && s.f.Config.hasGReg {
|
||||||
// use hardware g register
|
// use hardware g register
|
||||||
@ -1311,7 +1311,7 @@ func (s *regAllocState) regalloc(f *Func) {
|
|||||||
s.assignReg(s.GReg, v, v)
|
s.assignReg(s.GReg, v, v)
|
||||||
b.Values = append(b.Values, v)
|
b.Values = append(b.Values, v)
|
||||||
s.advanceUses(v)
|
s.advanceUses(v)
|
||||||
goto issueSpill
|
continue
|
||||||
}
|
}
|
||||||
if v.Op == OpArg {
|
if v.Op == OpArg {
|
||||||
// Args are "pre-spilled" values. We don't allocate
|
// 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
|
v.SetArg(i, a) // use register version of arguments
|
||||||
}
|
}
|
||||||
b.Values = append(b.Values, v)
|
b.Values = append(b.Values, v)
|
||||||
|
|
||||||
issueSpill:
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy the control values - we need this so we can reduce the
|
// Copy the control values - we need this so we can reduce the
|
||||||
|
Loading…
Reference in New Issue
Block a user