Commit e49c9109 authored by Todd Neal's avatar Todd Neal Committed by Keith Randall

[dev.ssa] cmd/compile: print aux value also

When printing a value with just an aux, print the aux as well. Debugging
cse is easier when the aux values are visible.

Change-Id: Ifaf96bdb25462c9df7ba01fdfdbf0d379631f555
Reviewed-on: https://go-review.googlesource.com/19476Reviewed-by: 's avatarKeith Randall <khr@golang.org>
parent d509788d
......@@ -113,6 +113,10 @@ func (v *Value) LongString() string {
s += fmt.Sprintf(" [%g]", v.AuxFloat())
case auxString:
s += fmt.Sprintf(" {%s}", v.Aux)
case auxSym:
if v.Aux != nil {
s += fmt.Sprintf(" {%s}", v.Aux)
}
case auxSymOff:
if v.Aux != nil {
s += fmt.Sprintf(" {%s}", v.Aux)
......
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