mirror of
https://github.com/golang/go
synced 2024-11-18 15:14:44 -07:00
cmd/compile: do regalloc check only when checkEnabled
No point doing this check all the time. Fixes #15621 Change-Id: I1966c061986fe98fe9ebe146d6b9738c13cef724 Reviewed-on: https://go-review.googlesource.com/30670 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
0db9518ab3
commit
93d5f43a29
@ -1436,8 +1436,7 @@ func (s *regAllocState) regalloc(f *Func) {
|
||||
}
|
||||
s.endRegs[b.ID] = regList
|
||||
|
||||
// Check. TODO: remove
|
||||
{
|
||||
if checkEnabled {
|
||||
liveSet.clear()
|
||||
for _, x := range s.live[b.ID] {
|
||||
liveSet.add(x.ID)
|
||||
|
Loading…
Reference in New Issue
Block a user