diff options
author | Keith Randall <khr@golang.org> | 2015-07-28 14:19:20 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2015-07-28 22:47:36 +0000 |
commit | 9cb332efd445a7e0672b96f9bc703c93f02879a5 (patch) | |
tree | e04bc2bd44e43fdf1924a6f10b80917d172f79c2 /src/cmd/compile/internal/ssa/deadcode_test.go | |
parent | 25d1916816c7fae4049b47efdc5fde37ce4a9be1 (diff) | |
download | go-9cb332efd445a7e0672b96f9bc703c93f02879a5.tar.gz go-9cb332efd445a7e0672b96f9bc703c93f02879a5.zip |
[dev.ssa] cmd/compile/internal/ssa: Split OpConst into an OpConst8, OpConst16, ...
Convert the polymorphic OpConst into monomorphic variants.
Change-Id: I90bb8894fbac04ca5e5484ea260c131ef8b506fb
Reviewed-on: https://go-review.googlesource.com/12798
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/deadcode_test.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/deadcode_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/compile/internal/ssa/deadcode_test.go b/src/cmd/compile/internal/ssa/deadcode_test.go index c63b8e4106..9ec8959571 100644 --- a/src/cmd/compile/internal/ssa/deadcode_test.go +++ b/src/cmd/compile/internal/ssa/deadcode_test.go @@ -17,7 +17,7 @@ func TestDeadLoop(t *testing.T) { // dead loop Bloc("deadblock", // dead value in dead block - Valu("deadval", OpConst, TypeBool, 0, true), + Valu("deadval", OpConstBool, TypeBool, 0, true), If("deadval", "deadblock", "exit"))) CheckFunc(fun.f) @@ -41,7 +41,7 @@ func TestDeadValue(t *testing.T) { fun := Fun(c, "entry", Bloc("entry", Valu("mem", OpArg, TypeMem, 0, ".mem"), - Valu("deadval", OpConst, TypeInt64, 37, nil), + Valu("deadval", OpConst64, TypeInt64, 37, nil), Goto("exit")), Bloc("exit", Exit("mem"))) @@ -63,7 +63,7 @@ func TestNeverTaken(t *testing.T) { c := NewConfig("amd64", DummyFrontend{t}) fun := Fun(c, "entry", Bloc("entry", - Valu("cond", OpConst, TypeBool, 0, false), + Valu("cond", OpConstBool, TypeBool, 0, false), Valu("mem", OpArg, TypeMem, 0, ".mem"), If("cond", "then", "else")), Bloc("then", @@ -99,7 +99,7 @@ func TestNestedDeadBlocks(t *testing.T) { fun := Fun(c, "entry", Bloc("entry", Valu("mem", OpArg, TypeMem, 0, ".mem"), - Valu("cond", OpConst, TypeBool, 0, false), + Valu("cond", OpConstBool, TypeBool, 0, false), If("cond", "b2", "b4")), Bloc("b2", If("cond", "b3", "b4")), |