cmd/compile/internal/ssa: simplify s = s <op> x to s <op>= x

Change-Id: I366b89e35d194ca2a7eb97a8253497bd3fc2af94
Reviewed-on: https://go-review.googlesource.com/c/go/+/142019
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
OlgaVlPetrova 2018-10-13 14:38:21 +03:00 committed by Ian Lance Taylor
parent d47526ed77
commit 9f85668a65

View File

@ -134,15 +134,15 @@ func (t *RBTint32) DebugString() string {
func (t *node32) DebugString() string {
s := ""
if t.left != nil {
s = s + "["
s = s + t.left.DebugString()
s = s + "]"
s += "["
s += t.left.DebugString()
s += "]"
}
s = s + fmt.Sprintf("%v=%v:%d", t.key, t.data, t.rank)
s += fmt.Sprintf("%v=%v:%d", t.key, t.data, t.rank)
if t.right != nil {
s = s + "["
s = s + t.right.DebugString()
s = s + "]"
s += "["
s += t.right.DebugString()
s += "]"
}
return s
}