mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.ssa] cmd/compile: remove dead code
Change-Id: I1738e3af7de0972c54d74325d80781059d0796d8 Reviewed-on: https://go-review.googlesource.com/19186 Run-TryBot: Todd Neal <todd@tneal.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
3297a4f5f3
commit
955749c45f
1 changed files with 0 additions and 14 deletions
|
|
@ -178,20 +178,6 @@ func cse(f *Func) {
|
|||
}
|
||||
}
|
||||
|
||||
// returns true if b dominates c.
|
||||
// simple and iterative, has O(depth) complexity in tall trees.
|
||||
func dom(b, c *Block, idom []*Block) bool {
|
||||
// Walk up from c in the dominator tree looking for b.
|
||||
for c != nil {
|
||||
if c == b {
|
||||
return true
|
||||
}
|
||||
c = idom[c.ID]
|
||||
}
|
||||
// Reached the entry block, never saw b.
|
||||
return false
|
||||
}
|
||||
|
||||
// An eqclass approximates an equivalence class. During the
|
||||
// algorithm it may represent the union of several of the
|
||||
// final equivalence classes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue