]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: sort liveness variable reports
authorKeith Randall <khr@golang.org>
Fri, 20 Jan 2023 21:36:51 +0000 (13:36 -0800)
committerKeith Randall <khr@google.com>
Sat, 21 Jan 2023 21:08:00 +0000 (21:08 +0000)
commit4ff074945a4848cd04c020b7f20ddaa1d78cc548
treee844dfe4d57cb959131b0f2c25d94e5377adf3d1
parent780fa2426073035459b8a5d8e317f47864132ce4
cmd/compile: sort liveness variable reports

Sort variables before display so that when there are multiple variables
to report, they are in a consistent order.

Otherwise they are ordered in the order they appear in the fn.Dcl list,
which can vary. Particularly, they vary depending on regabi.

Change-Id: I0db380f7cbe6911e87177503a4c3b39851ff1b5a
Reviewed-on: https://go-review.googlesource.com/c/go/+/462898
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/liveness/plive.go
test/live.go
test/live_regabi.go