From: Todd Neal Date: Thu, 4 Feb 2016 00:27:43 +0000 (-0500) Subject: [dev.ssa] cmd/compile: remove dead code X-Git-Tag: go1.7beta1~1623^2^2~68 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=955749c45f7bcff039adbe54d11c7c24782d6941;p=gostls13.git [dev.ssa] cmd/compile: remove dead code Change-Id: I1738e3af7de0972c54d74325d80781059d0796d8 Reviewed-on: https://go-review.googlesource.com/19186 Run-TryBot: Todd Neal TryBot-Result: Gobot Gobot Reviewed-by: Keith Randall --- diff --git a/src/cmd/compile/internal/ssa/cse.go b/src/cmd/compile/internal/ssa/cse.go index 14cec12e92..1cf0dfd4d9 100644 --- a/src/cmd/compile/internal/ssa/cse.go +++ b/src/cmd/compile/internal/ssa/cse.go @@ -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.