Commit 10fdf769 authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

cmd/compile: remove function-name-based debuglive tweaks

It's easier to grep output than recompile the compiler anyway.

For concurrent compilation.

Updates #15756

Change-Id: I151cb5dc77056469cd9019d516f86454e931a197
Reviewed-on: https://go-review.googlesource.com/38424
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: 's avatarMatthew Dempsky <mdempsky@google.com>
parent 89840e4a
......@@ -1109,15 +1109,6 @@ func livenessemit(lv *Liveness, argssym, livesym *Sym) {
// structure read by the garbage collector.
// Returns a map from GC safe points to their corresponding stack map index.
func liveness(e *ssafn, f *ssa.Func, argssym, livesym *Sym) map[*ssa.Value]int {
// Change name to dump debugging information only for a specific function.
debugdelta := 0
if e.curfn.Func.Nname.Sym.Name == "!" {
debugdelta = 2
}
debuglive += debugdelta
// Construct the global liveness state.
vars := getvariables(e.curfn)
lv := newliveness(e.curfn, f, vars, e.stkptrsize)
......@@ -1133,8 +1124,5 @@ func liveness(e *ssafn, f *ssa.Func, argssym, livesym *Sym) map[*ssa.Value]int {
// Emit the live pointer map data structures
livenessemit(lv, argssym, livesym)
debuglive -= debugdelta
return lv.stackMapIndex
}
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