aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/lca_test.go
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2019-09-01 12:29:41 +0200
committerDaniel Martí <mvdan@mvdan.cc>2019-09-01 14:25:12 +0000
commitc51909e3a59b8222e9de05be4d1aec75c6d40b4a (patch)
treee67bd54e469ceae765a8d62161d67f2bb811dd0d /src/cmd/compile/internal/ssa/lca_test.go
parent99df76f0869f00ad9ba53e3aecc22d625ae23de1 (diff)
downloadgo-c51909e3a59b8222e9de05be4d1aec75c6d40b4a.tar.gz
go-c51909e3a59b8222e9de05be4d1aec75c6d40b4a.zip
cmd/compile: remove a few unused bits of code
Just the low-hanging fruit; code that was either never used, or its last use was removed a while ago. Change-Id: Ic7f90aeee3e6daf7edc16cde3c0a767d67e617ee Reviewed-on: https://go-review.googlesource.com/c/go/+/192618 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/lca_test.go')
-rw-r--r--src/cmd/compile/internal/ssa/lca_test.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/cmd/compile/internal/ssa/lca_test.go b/src/cmd/compile/internal/ssa/lca_test.go
index 8221dc466d..8c8920c740 100644
--- a/src/cmd/compile/internal/ssa/lca_test.go
+++ b/src/cmd/compile/internal/ssa/lca_test.go
@@ -6,21 +6,6 @@ package ssa
import "testing"
-type lca interface {
- find(a, b *Block) *Block
-}
-
-func lcaEqual(f *Func, lca1, lca2 lca) bool {
- for _, b := range f.Blocks {
- for _, c := range f.Blocks {
- if lca1.find(b, c) != lca2.find(b, c) {
- return false
- }
- }
- }
- return true
-}
-
func testLCAgen(t *testing.T, bg blockGen, size int) {
c := testConfig(t)
fun := c.Fun("entry", bg(size)...)