mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.ssa] cmd/compile: move most types outside SSA
The only types that remain in the ssa package are special compiler-only types. Change-Id: If957abf128ec0778910d67666c297f97f183b7ee Reviewed-on: https://go-review.googlesource.com/12933 Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
165c1c16d1
commit
85e0329fbc
15 changed files with 262 additions and 192 deletions
|
|
@ -7,7 +7,7 @@ package ssa
|
|||
import "testing"
|
||||
|
||||
func TestDeadLoop(t *testing.T) {
|
||||
c := NewConfig("amd64", DummyFrontend{t})
|
||||
c := testConfig(t)
|
||||
fun := Fun(c, "entry",
|
||||
Bloc("entry",
|
||||
Valu("mem", OpArg, TypeMem, 0, ".mem"),
|
||||
|
|
@ -37,7 +37,7 @@ func TestDeadLoop(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDeadValue(t *testing.T) {
|
||||
c := NewConfig("amd64", DummyFrontend{t})
|
||||
c := testConfig(t)
|
||||
fun := Fun(c, "entry",
|
||||
Bloc("entry",
|
||||
Valu("mem", OpArg, TypeMem, 0, ".mem"),
|
||||
|
|
@ -60,7 +60,7 @@ func TestDeadValue(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestNeverTaken(t *testing.T) {
|
||||
c := NewConfig("amd64", DummyFrontend{t})
|
||||
c := testConfig(t)
|
||||
fun := Fun(c, "entry",
|
||||
Bloc("entry",
|
||||
Valu("cond", OpConstBool, TypeBool, 0, false),
|
||||
|
|
@ -95,7 +95,7 @@ func TestNeverTaken(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestNestedDeadBlocks(t *testing.T) {
|
||||
c := NewConfig("amd64", DummyFrontend{t})
|
||||
c := testConfig(t)
|
||||
fun := Fun(c, "entry",
|
||||
Bloc("entry",
|
||||
Valu("mem", OpArg, TypeMem, 0, ".mem"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue