mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: port liveness analysis to SSA
Passes toolstash-check -all. Change-Id: I92c3c25d6c053f971f346f4fa3bbc76419b58183 Reviewed-on: https://go-review.googlesource.com/38087 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
ea8c7dae4f
commit
325904fe6a
6 changed files with 422 additions and 1002 deletions
|
|
@ -497,6 +497,10 @@ func (f *Func) postorder() []*Block {
|
|||
return f.cachedPostorder
|
||||
}
|
||||
|
||||
func (f *Func) Postorder() []*Block {
|
||||
return f.postorder()
|
||||
}
|
||||
|
||||
// Idom returns a map from block ID to the immediate dominator of that block.
|
||||
// f.Entry.ID maps to nil. Unreachable blocks map to nil as well.
|
||||
func (f *Func) Idom() []*Block {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue