aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/sizeof_test.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2017-06-03 08:25:15 -0700
committerJosh Bleecher Snyder <josharian@gmail.com>2017-06-03 17:04:56 +0000
commitc99483feb816856da1d8f3fc5a59467c0e359f3f (patch)
tree5d9151aa48fd253596d0c27cde11d6f00ccd1f71 /src/cmd/compile/internal/ssa/sizeof_test.go
parente5d2104582674c5f03871512f290be5d0620b6ad (diff)
downloadgo-c99483feb816856da1d8f3fc5a59467c0e359f3f.tar.gz
go-c99483feb816856da1d8f3fc5a59467c0e359f3f.zip
cmd/compile: add valState to ssa sizeof tests
I learned from CL 41770 that valState’s size matters to compiler performance. Encode that knowledge in a test. Change-Id: I7c0fde6a4cf460017619dbcce1c1ddaa7af10239 Reviewed-on: https://go-review.googlesource.com/44737 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/sizeof_test.go')
-rw-r--r--src/cmd/compile/internal/ssa/sizeof_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/ssa/sizeof_test.go b/src/cmd/compile/internal/ssa/sizeof_test.go
index fa68209534..9fab7b664f 100644
--- a/src/cmd/compile/internal/ssa/sizeof_test.go
+++ b/src/cmd/compile/internal/ssa/sizeof_test.go
@@ -24,6 +24,7 @@ func TestSizeof(t *testing.T) {
}{
{Value{}, 68, 112},
{Block{}, 152, 288},
+ {valState{}, 28, 40},
}
for _, tt := range tests {