diff options
author | Josh Bleecher Snyder <josharian@gmail.com> | 2017-08-20 11:47:50 -0700 |
---|---|---|
committer | Josh Bleecher Snyder <josharian@gmail.com> | 2017-08-24 05:38:57 +0000 |
commit | f7aa454c58ed0d06823f509fc39474b6f52f7c3a (patch) | |
tree | ee3cb03644836d16b0167040bf4334b68e00fb46 /src/runtime/runtime_test.go | |
parent | 5df1fe52fe7b909c925738e516feb54be712f2c1 (diff) | |
download | go-f7aa454c58ed0d06823f509fc39474b6f52f7c3a.tar.gz go-f7aa454c58ed0d06823f509fc39474b6f52f7c3a.zip |
runtime: mask shifts in map implementation on x86
This slightly improves the generated code on x86 architectures,
including on many hot paths.
It is a no-op on other architectures.
Change-Id: I86336fd846bc5805a27bbec572e8c73dcbd0d567
Reviewed-on: https://go-review.googlesource.com/57411
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/runtime/runtime_test.go')
-rw-r--r-- | src/runtime/runtime_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/runtime_test.go b/src/runtime/runtime_test.go index e1f1be7196..752cd21c92 100644 --- a/src/runtime/runtime_test.go +++ b/src/runtime/runtime_test.go @@ -369,7 +369,7 @@ func TestIntendedInlining(t *testing.T) { t.Parallel() // want is the list of function names that should be inlined. - want := []string{"tophash", "add", "(*bmap).keys"} + want := []string{"tophash", "add", "(*bmap).keys", "bucketShift", "bucketMask"} m := make(map[string]bool, len(want)) for _, s := range want { |