]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.ssa] cmd/compile: remove dead code
authorTodd Neal <todd@tneal.org>
Thu, 4 Feb 2016 00:27:43 +0000 (19:27 -0500)
committerTodd Neal <todd@tneal.org>
Thu, 4 Feb 2016 00:53:55 +0000 (00:53 +0000)
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>
src/cmd/compile/internal/ssa/cse.go

index 14cec12e9209be4a6cf8918c20ed0fd2f706aa20..1cf0dfd4d97724793b093c0c6f3441b9d7482cb4 100644 (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.