diff options
author | Keith Randall <khr@golang.org> | 2015-05-28 16:45:33 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2015-05-30 06:08:26 +0000 |
commit | a9cec30fdcc549282e0a5d520edb2eaf60f3061a (patch) | |
tree | dbcd629c320607cb71e523e25e27349add3eed29 /src/cmd/compile/internal/ssa/deadcode_test.go | |
parent | b0da62903d045f6d3e832ba1181387a1e9ad33f1 (diff) | |
download | go-a9cec30fdcc549282e0a5d520edb2eaf60f3061a.tar.gz go-a9cec30fdcc549282e0a5d520edb2eaf60f3061a.zip |
[dev.ssa] cmd/compile/internal/ssa: Implement block rewriting rules
Change-Id: I47e5349e34fc18118c4d35bf433f875b958cc3e5
Reviewed-on: https://go-review.googlesource.com/10495
Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/deadcode_test.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/deadcode_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cmd/compile/internal/ssa/deadcode_test.go b/src/cmd/compile/internal/ssa/deadcode_test.go index f3d5682355..07e017c73a 100644 --- a/src/cmd/compile/internal/ssa/deadcode_test.go +++ b/src/cmd/compile/internal/ssa/deadcode_test.go @@ -4,9 +4,7 @@ package ssa -import ( - "testing" -) +import "testing" func TestDeadLoop(t *testing.T) { c := NewConfig("amd64") @@ -76,6 +74,7 @@ func TestNeverTaken(t *testing.T) { Exit("mem"))) CheckFunc(fun.f) + Opt(fun.f) Deadcode(fun.f) CheckFunc(fun.f) |