[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:
Todd Neal 2016-02-03 19:27:43 -05:00
parent 3297a4f5f3
commit 955749c45f

View file

@ -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.