[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>
This commit is contained in:
Keith Randall 2015-05-28 16:45:33 -07:00
parent b0da62903d
commit a9cec30fdc
19 changed files with 660 additions and 208 deletions

View file

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