mirror of
https://github.com/golang/go
synced 2024-11-19 10:34:46 -07:00
cmd/compile: change logging of spills for regalloc to Warnl format
Change-Id: I01c000ff3f6dc6b0ed691e289eeef0fa61500337 Reviewed-on: https://go-review.googlesource.com/20744 Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
a9d0244c33
commit
763afe13b9
@ -450,7 +450,7 @@ func (s *regAllocState) allocValToReg(v *Value, mask regMask, nospill bool, line
|
||||
// Load v from its spill location.
|
||||
case vi.spill != nil:
|
||||
if s.f.pass.debug > logSpills {
|
||||
fmt.Println("regalloc: load spill")
|
||||
s.f.Config.Warnl(vi.spill.Line, "load spill")
|
||||
}
|
||||
c = s.curBlock.NewValue1(line, OpLoadReg, v.Type, vi.spill)
|
||||
vi.spillUsed = true
|
||||
@ -1114,7 +1114,7 @@ func (s *regAllocState) regalloc(f *Func) {
|
||||
vi := s.values[i]
|
||||
if vi.spillUsed {
|
||||
if s.f.pass.debug > logSpills {
|
||||
fmt.Println("regalloc: spilled value")
|
||||
s.f.Config.Warnl(vi.spill.Line, "spilled value")
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user