1
0
mirror of https://github.com/golang/go synced 2024-11-19 10:24:43 -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:
Todd Neal 2016-03-15 16:57:20 -05:00
parent a9d0244c33
commit 763afe13b9

View File

@ -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
}