Commit 763afe13 authored by Todd Neal's avatar Todd Neal

cmd/compile: change logging of spills for regalloc to Warnl format

Change-Id: I01c000ff3f6dc6b0ed691e289eeef0fa61500337
Reviewed-on: https://go-review.googlesource.com/20744Reviewed-by: 's avatarKeith Randall <khr@golang.org>
parent a9d0244c
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment