]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: sort CFG blocks in PC order during liveness
authorMatthew Dempsky <mdempsky@google.com>
Sat, 11 Mar 2017 00:03:56 +0000 (16:03 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 20 Mar 2017 22:58:45 +0000 (22:58 +0000)
commitea8c7dae4fe2fa9cc5ef258582086941aec751ae
tree065741810da32d8eacf18efada42fd9ba12baf83
parent42a915c933e44784e70c9e61e4fe77c133580895
cmd/compile: sort CFG blocks in PC order during liveness

This CL changes the order that liveness analysis visits CFG blocks to
PC order, rather than RPO. This doesn't meaningfully change anything
except that the PCDATA_StackMapIndex values will be assigned in PC
order too.

However, this does have the benefit that the subsequent CL to port
liveness analysis to the SSA CFG (which has blocks in PC order) will
now pass toolstash-check.

Change-Id: I1de5a2eecb8027723a6e422d46186d0c63d48c8d
Reviewed-on: https://go-review.googlesource.com/38086
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/plive.go