1. 27 Apr, 2018 1 commit
  2. 26 Apr, 2018 24 commits
  3. 25 Apr, 2018 15 commits
    • Josh Bleecher Snyder's avatar
      cmd/compile: use intrinsic for LeadingZeros8 on amd64 · c5f0104d
      Josh Bleecher Snyder authored
      The previous change sped up the pure computation form of LeadingZeros8.
      This places it somewhat close to the table lookup form.
      Depending on something that varies from toolchain to toolchain
      (alignment, perhaps?), the slowdown from ditching the table lookup
      is either 20% or 5%.
      
      This benchmark is the best case scenario for the table lookup:
      It is in the L1 cache already.
      
      I think we're close enough that we can switch to the computational version,
      and trust that the memory effects and binary size savings will be worth it.
      
      Code:
      
      func f8(x uint8)   { z = bits.LeadingZeros8(x) }
      
      Before:
      
      "".f8 STEXT nosplit size=34 args=0x8 locals=0x0
      	0x0000 00000 (x.go:7)	TEXT	"".f8(SB), NOSPLIT, $0-8
      	0x0000 00000 (x.go:7)	FUNCDATA	$0, gclocals·2a5305abe05176240e61b8620e19a815(SB)
      	0x0000 00000 (x.go:7)	FUNCDATA	$1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
      	0x0000 00000 (x.go:7)	MOVBLZX	"".x+8(SP), AX
      	0x0005 00005 (x.go:7)	MOVBLZX	AL, AX
      	0x0008 00008 (x.go:7)	LEAQ	math/bits.len8tab(SB), CX
      	0x000f 00015 (x.go:7)	MOVBLZX	(CX)(AX*1), AX
      	0x0013 00019 (x.go:7)	ADDQ	$-8, AX
      	0x0017 00023 (x.go:7)	NEGQ	AX
      	0x001a 00026 (x.go:7)	MOVQ	AX, "".z(SB)
      	0x0021 00033 (x.go:7)	RET
      
      After:
      
      "".f8 STEXT nosplit size=30 args=0x8 locals=0x0
      	0x0000 00000 (x.go:7)	TEXT	"".f8(SB), NOSPLIT, $0-8
      	0x0000 00000 (x.go:7)	FUNCDATA	$0, gclocals·2a5305abe05176240e61b8620e19a815(SB)
      	0x0000 00000 (x.go:7)	FUNCDATA	$1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
      	0x0000 00000 (x.go:7)	MOVBLZX	"".x+8(SP), AX
      	0x0005 00005 (x.go:7)	MOVBLZX	AL, AX
      	0x0008 00008 (x.go:7)	LEAL	1(AX)(AX*1), AX
      	0x000c 00012 (x.go:7)	BSRL	AX, AX
      	0x000f 00015 (x.go:7)	ADDQ	$-8, AX
      	0x0013 00019 (x.go:7)	NEGQ	AX
      	0x0016 00022 (x.go:7)	MOVQ	AX, "".z(SB)
      	0x001d 00029 (x.go:7)	RET
      
      Change-Id: Icc7db50a7820fb9a3da8a816d6b6940d7f8e193e
      Reviewed-on: https://go-review.googlesource.com/108942
      Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarKeith Randall <khr@golang.org>
      c5f0104d
    • Josh Bleecher Snyder's avatar
      cmd/compile: optimize LeadingZeros(16|32) on amd64 · 1d321ada
      Josh Bleecher Snyder authored
      Introduce Len8 and Len16 ops and provide optimized lowerings for them.
      amd64 only for this CL, although it wouldn't surprise me
      if other architectures also admit of optimized lowerings.
      
      Also use and optimize the Len32 lowering, along the same lines.
      
      Leave Len8 unused for the moment; a subsequent CL will enable it.
      
      For 16 and 32 bits, this leads to a speed-up.
      
      name              old time/op  new time/op  delta
      LeadingZeros16-8  1.42ns ± 5%  1.23ns ± 5%  -13.42%  (p=0.000 n=20+20)
      LeadingZeros32-8  1.25ns ± 5%  1.03ns ± 5%  -17.63%  (p=0.000 n=20+16)
      
      Code:
      
      func f16(x uint16) { z = bits.LeadingZeros16(x) }
      func f32(x uint32) { z = bits.LeadingZeros32(x) }
      
      Before:
      
      "".f16 STEXT nosplit size=38 args=0x8 locals=0x0
      	0x0000 00000 (x.go:8)	TEXT	"".f16(SB), NOSPLIT, $0-8
      	0x0000 00000 (x.go:8)	FUNCDATA	$0, gclocals·2a5305abe05176240e61b8620e19a815(SB)
      	0x0000 00000 (x.go:8)	FUNCDATA	$1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
      	0x0000 00000 (x.go:8)	MOVWLZX	"".x+8(SP), AX
      	0x0005 00005 (x.go:8)	MOVWLZX	AX, AX
      	0x0008 00008 (x.go:8)	BSRQ	AX, AX
      	0x000c 00012 (x.go:8)	MOVQ	$-1, CX
      	0x0013 00019 (x.go:8)	CMOVQEQ	CX, AX
      	0x0017 00023 (x.go:8)	ADDQ	$-15, AX
      	0x001b 00027 (x.go:8)	NEGQ	AX
      	0x001e 00030 (x.go:8)	MOVQ	AX, "".z(SB)
      	0x0025 00037 (x.go:8)	RET
      
      "".f32 STEXT nosplit size=34 args=0x8 locals=0x0
      	0x0000 00000 (x.go:9)	TEXT	"".f32(SB), NOSPLIT, $0-8
      	0x0000 00000 (x.go:9)	FUNCDATA	$0, gclocals·2a5305abe05176240e61b8620e19a815(SB)
      	0x0000 00000 (x.go:9)	FUNCDATA	$1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
      	0x0000 00000 (x.go:9)	MOVL	"".x+8(SP), AX
      	0x0004 00004 (x.go:9)	BSRQ	AX, AX
      	0x0008 00008 (x.go:9)	MOVQ	$-1, CX
      	0x000f 00015 (x.go:9)	CMOVQEQ	CX, AX
      	0x0013 00019 (x.go:9)	ADDQ	$-31, AX
      	0x0017 00023 (x.go:9)	NEGQ	AX
      	0x001a 00026 (x.go:9)	MOVQ	AX, "".z(SB)
      	0x0021 00033 (x.go:9)	RET
      
      After:
      
      "".f16 STEXT nosplit size=30 args=0x8 locals=0x0
      	0x0000 00000 (x.go:8)	TEXT	"".f16(SB), NOSPLIT, $0-8
      	0x0000 00000 (x.go:8)	FUNCDATA	$0, gclocals·2a5305abe05176240e61b8620e19a815(SB)
      	0x0000 00000 (x.go:8)	FUNCDATA	$1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
      	0x0000 00000 (x.go:8)	MOVWLZX	"".x+8(SP), AX
      	0x0005 00005 (x.go:8)	MOVWLZX	AX, AX
      	0x0008 00008 (x.go:8)	LEAL	1(AX)(AX*1), AX
      	0x000c 00012 (x.go:8)	BSRL	AX, AX
      	0x000f 00015 (x.go:8)	ADDQ	$-16, AX
      	0x0013 00019 (x.go:8)	NEGQ	AX
      	0x0016 00022 (x.go:8)	MOVQ	AX, "".z(SB)
      	0x001d 00029 (x.go:8)	RET
      
      "".f32 STEXT nosplit size=28 args=0x8 locals=0x0
      	0x0000 00000 (x.go:9)	TEXT	"".f32(SB), NOSPLIT, $0-8
      	0x0000 00000 (x.go:9)	FUNCDATA	$0, gclocals·2a5305abe05176240e61b8620e19a815(SB)
      	0x0000 00000 (x.go:9)	FUNCDATA	$1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
      	0x0000 00000 (x.go:9)	MOVL	"".x+8(SP), AX
      	0x0004 00004 (x.go:9)	LEAQ	1(AX)(AX*1), AX
      	0x0009 00009 (x.go:9)	BSRQ	AX, AX
      	0x000d 00013 (x.go:9)	ADDQ	$-32, AX
      	0x0011 00017 (x.go:9)	NEGQ	AX
      	0x0014 00020 (x.go:9)	MOVQ	AX, "".z(SB)
      	0x001b 00027 (x.go:9)	RET
      
      Change-Id: I6c93c173752a7bfdeab8be30777ae05a736e1f4b
      Reviewed-on: https://go-review.googlesource.com/108941
      Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarGiovanni Bajo <rasky@develer.com>
      Reviewed-by: default avatarKeith Randall <khr@golang.org>
      1d321ada
    • Josh Bleecher Snyder's avatar
      cmd/compile: optimize TrailingZeros(8|16) on amd64 · 54dbab52
      Josh Bleecher Snyder authored
      Introduce Ctz8 and Ctz16 ops and provide optimized lowerings for them.
      amd64 only for this CL, although it wouldn't surprise me
      if other architectures also admit of optimized lowerings.
      
      name               old time/op  new time/op  delta
      TrailingZeros8-8   1.33ns ± 6%  0.84ns ± 3%  -36.90%  (p=0.000 n=20+20)
      TrailingZeros16-8  1.26ns ± 5%  0.84ns ± 5%  -33.50%  (p=0.000 n=20+18)
      
      Code:
      
      func f8(x uint8)   { z = bits.TrailingZeros8(x) }
      func f16(x uint16) { z = bits.TrailingZeros16(x) }
      
      Before:
      
      "".f8 STEXT nosplit size=34 args=0x8 locals=0x0
      	0x0000 00000 (x.go:7)	TEXT	"".f8(SB), NOSPLIT, $0-8
      	0x0000 00000 (x.go:7)	FUNCDATA	$0, gclocals·2a5305abe05176240e61b8620e19a815(SB)
      	0x0000 00000 (x.go:7)	FUNCDATA	$1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
      	0x0000 00000 (x.go:7)	MOVBLZX	"".x+8(SP), AX
      	0x0005 00005 (x.go:7)	MOVBLZX	AL, AX
      	0x0008 00008 (x.go:7)	BTSQ	$8, AX
      	0x000d 00013 (x.go:7)	BSFQ	AX, AX
      	0x0011 00017 (x.go:7)	MOVL	$64, CX
      	0x0016 00022 (x.go:7)	CMOVQEQ	CX, AX
      	0x001a 00026 (x.go:7)	MOVQ	AX, "".z(SB)
      	0x0021 00033 (x.go:7)	RET
      
      "".f16 STEXT nosplit size=34 args=0x8 locals=0x0
      	0x0000 00000 (x.go:8)	TEXT	"".f16(SB), NOSPLIT, $0-8
      	0x0000 00000 (x.go:8)	FUNCDATA	$0, gclocals·2a5305abe05176240e61b8620e19a815(SB)
      	0x0000 00000 (x.go:8)	FUNCDATA	$1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
      	0x0000 00000 (x.go:8)	MOVWLZX	"".x+8(SP), AX
      	0x0005 00005 (x.go:8)	MOVWLZX	AX, AX
      	0x0008 00008 (x.go:8)	BTSQ	$16, AX
      	0x000d 00013 (x.go:8)	BSFQ	AX, AX
      	0x0011 00017 (x.go:8)	MOVL	$64, CX
      	0x0016 00022 (x.go:8)	CMOVQEQ	CX, AX
      	0x001a 00026 (x.go:8)	MOVQ	AX, "".z(SB)
      	0x0021 00033 (x.go:8)	RET
      
      After:
      
      "".f8 STEXT nosplit size=20 args=0x8 locals=0x0
      	0x0000 00000 (x.go:7)	TEXT	"".f8(SB), NOSPLIT, $0-8
      	0x0000 00000 (x.go:7)	FUNCDATA	$0, gclocals·2a5305abe05176240e61b8620e19a815(SB)
      	0x0000 00000 (x.go:7)	FUNCDATA	$1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
      	0x0000 00000 (x.go:7)	MOVBLZX	"".x+8(SP), AX
      	0x0005 00005 (x.go:7)	BTSL	$8, AX
      	0x0009 00009 (x.go:7)	BSFL	AX, AX
      	0x000c 00012 (x.go:7)	MOVQ	AX, "".z(SB)
      	0x0013 00019 (x.go:7)	RET
      
      "".f16 STEXT nosplit size=20 args=0x8 locals=0x0
      	0x0000 00000 (x.go:8)	TEXT	"".f16(SB), NOSPLIT, $0-8
      	0x0000 00000 (x.go:8)	FUNCDATA	$0, gclocals·2a5305abe05176240e61b8620e19a815(SB)
      	0x0000 00000 (x.go:8)	FUNCDATA	$1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
      	0x0000 00000 (x.go:8)	MOVWLZX	"".x+8(SP), AX
      	0x0005 00005 (x.go:8)	BTSL	$16, AX
      	0x0009 00009 (x.go:8)	BSFL	AX, AX
      	0x000c 00012 (x.go:8)	MOVQ	AX, "".z(SB)
      	0x0013 00019 (x.go:8)	RET
      
      Change-Id: I0551e357348de2b724737d569afd6ac9f5c3aa11
      Reviewed-on: https://go-review.googlesource.com/108940
      Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarGiovanni Bajo <rasky@develer.com>
      Reviewed-by: default avatarKeith Randall <khr@golang.org>
      54dbab52
    • Russ Cox's avatar
      cmd/go/internal/load: split test logic out of pkg.go into test.go · 90083e65
      Russ Cox authored
      It's going to grow.
      
      Change-Id: I4f5d3cce6e03250508d1ae0981a6d82a4192ae31
      Reviewed-on: https://go-review.googlesource.com/107915
      Run-TryBot: Russ Cox <rsc@golang.org>
      Reviewed-by: default avatarBryan C. Mills <bcmills@google.com>
      90083e65
    • Russ Cox's avatar
      cmd/go: add go list -deps · 90e860f1
      Russ Cox authored
      This gives an easy way to query properties of all the deps
      of a set of packages, in a single go list invocation.
      Go list has already done the hard work of loading these
      packages, so exposing them is more efficient than
      requiring a second invocation.
      
      This will be helpful for tools asking cmd/go about build
      information.
      
      Change-Id: I90798e386246b24aad92dd13cb9e3788c7d30e91
      Reviewed-on: https://go-review.googlesource.com/107776
      Run-TryBot: Russ Cox <rsc@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBryan C. Mills <bcmills@google.com>
      90e860f1
    • Ian Lance Taylor's avatar
      misc/cgo/test: log error value in testSigprocmask · 9c9ed9aa
      Ian Lance Taylor authored
      The test has been flaky, probably due to EAGAIN, but let's find out
      for sure.
      
      Updates #25078
      
      Change-Id: I5a5b14bfc52cb43f25f07ca7d207b61ae9d4f944
      Reviewed-on: https://go-review.googlesource.com/109359
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      Reviewed-by: default avatarBryan C. Mills <bcmills@google.com>
      9c9ed9aa
    • Russ Cox's avatar
      cmd/compile: fix format error · d3ff5090
      Russ Cox authored
      Found by pending CL to make cmd/vet auto-detect printf wrappers.
      
      Change-Id: I6b5ba8f9c301dd2d7086c152cf2e54a68b012208
      Reviewed-on: https://go-review.googlesource.com/109345
      Run-TryBot: Russ Cox <rsc@golang.org>
      Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      d3ff5090
    • Russ Cox's avatar
      encoding/base64: fix format error · 50a58396
      Russ Cox authored
      Found by pending CL to make cmd/vet auto-detect printf wrappers.
      
      Change-Id: I2ad06647b7b41cf68859820a60eeac2e689ca2e6
      Reviewed-on: https://go-review.googlesource.com/109344
      Run-TryBot: Russ Cox <rsc@golang.org>
      Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      50a58396
    • Russ Cox's avatar
      go/types: fix format errors · 932794cb
      Russ Cox authored
      Found by pending CL to make cmd/vet auto-detect printf wrappers.
      
      Change-Id: I1928a5bcd7885cdd950ce81b7d0ba07fbad3bf88
      Reviewed-on: https://go-review.googlesource.com/109343
      Run-TryBot: Russ Cox <rsc@golang.org>
      Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      932794cb
    • Russ Cox's avatar
      cmd/go: fix go list .Stale computation · 9e0e6981
      Russ Cox authored
      If X depends on Y and X was installed but Y is only present in the cache
      (as happens when you "go install X") then we should report X as up-to-date,
      not as stale.
      
      This applies whether X is a package or a main binary.
      
      Fixes #24558.
      Fixes #23818.
      
      Change-Id: I26a0b375b1f7f7ac909cc0db68e92f4e04529208
      Reviewed-on: https://go-review.googlesource.com/107957
      Run-TryBot: Russ Cox <rsc@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBryan C. Mills <bcmills@google.com>
      9e0e6981
    • Matthew Dempsky's avatar
      cmd/compile/internal/types: remove Field.Funarg · 7500b299
      Matthew Dempsky authored
      Passes toolstash-check.
      
      Change-Id: Idc00f15e369cad62cb8f7a09fd0ef09abd3fcdef
      Reviewed-on: https://go-review.googlesource.com/109356
      Run-TryBot: Matthew Dempsky <mdempsky@google.com>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      7500b299
    • Robert Griesemer's avatar
      go/types: use correct (file) scopes when computing interface method sets · 73becbf9
      Robert Griesemer authored
      This was already partially fixed by commit 99843e22
      (https://go-review.googlesource.com/c/go/+/96376); but
      we missed a couple of places where we also need to
      propagate the scope.
      
      Fixes #25008.
      
      Change-Id: I041fa74d1f6d3b5a8edb922efa126ff1dacd7900
      Reviewed-on: https://go-review.googlesource.com/109139Reviewed-by: default avatarAlan Donovan <adonovan@google.com>
      73becbf9
    • Russ Cox's avatar
      cmd/go: avoid infinite loop in go list -json -e on import cycle · f2df0ec7
      Russ Cox authored
      Don't chase import cycles forever preparing list JSON.
      
      Fixes #24086.
      
      Change-Id: Ia1139d0c8d813d068c367a8baee59d240a545617
      Reviewed-on: https://go-review.googlesource.com/108016
      Run-TryBot: Russ Cox <rsc@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBryan C. Mills <bcmills@google.com>
      f2df0ec7
    • Ilya Tocar's avatar
      cmd/compile/internal/ssa: tweak branchelim cost model on amd64 · 25813f9f
      Ilya Tocar authored
      Currently branchelim is too aggressive in converting branches to
      conditinal movs. On most x86 cpus resulting cmov* are more expensive than
      most simple instructions, because they have a latency of 2, instead of 1,
      So by teaching branchelim to limit number of CondSelects and consider possible
      need to recalculate flags, we can archive huge speed-ups (fix big regressions).
      In package strings:
      
      ToUpper/#00-6                              10.9ns ± 1%  11.8ns ± 1%   +8.29%  (p=0.000 n=10+10)
      ToUpper/ONLYUPPER-6                        27.9ns ± 0%  27.8ns ± 1%     ~     (p=0.106 n=9+10)
      ToUpper/abc-6                              90.3ns ± 2%  90.3ns ± 1%     ~     (p=0.956 n=10+10)
      ToUpper/AbC123-6                            110ns ± 1%   113ns ± 2%   +3.19%  (p=0.000 n=10+10)
      ToUpper/azAZ09_-6                           109ns ± 2%   110ns ± 1%     ~     (p=0.174 n=10+10)
      ToUpper/longStrinGwitHmixofsmaLLandcAps-6   228ns ± 1%   233ns ± 2%   +2.11%  (p=0.000 n=10+10)
      ToUpper/longɐstringɐwithɐnonasciiⱯchars-6   907ns ± 1%   709ns ± 2%  -21.85%  (p=0.000 n=10+10)
      ToUpper/ɐɐɐɐɐ-6                             793ns ± 2%   562ns ± 2%  -29.06%  (p=0.000 n=10+10)
      
      In fmt:
      
      SprintfQuoteString-6   272ns ± 2%   195ns ± 4%  -28.39%  (p=0.000 n=10+10)
      
      And in archive/zip:
      
      CompressedZipGarbage-6       4.00ms ± 0%    4.03ms ± 0%   +0.71%  (p=0.000 n=10+10)
      Zip64Test-6                  27.5ms ± 1%    24.2ms ± 0%  -12.01%  (p=0.000 n=10+10)
      Zip64TestSizes/4096-6        10.4µs ±12%    10.7µs ± 8%     ~     (p=0.068 n=10+8)
      Zip64TestSizes/1048576-6     79.0µs ± 3%    70.2µs ± 2%  -11.14%  (p=0.000 n=10+10)
      Zip64TestSizes/67108864-6    4.64ms ± 1%    4.11ms ± 1%  -11.43%  (p=0.000 n=10+10)
      
      As far as I can tell, no cases with significant gain from cmov have regressed.
      
      On go1 it looks like most changes are unrelated, but I've verified that
      TimeFormat really switched from cmov to branch in a hot spot.
      Fill results below:
      
      name                     old time/op    new time/op    delta
      BinaryTree17-6              4.42s ± 1%     4.44s ± 1%    ~     (p=0.075 n=10+10)
      Fannkuch11-6                4.23s ± 0%     4.18s ± 0%  -1.16%  (p=0.000 n=8+10)
      FmtFprintfEmpty-6          67.5ns ± 2%    67.5ns ± 0%    ~     (p=0.950 n=10+7)
      FmtFprintfString-6          117ns ± 2%     119ns ± 1%  +1.07%  (p=0.045 n=9+10)
      FmtFprintfInt-6             122ns ± 0%     123ns ± 2%    ~     (p=0.825 n=8+10)
      FmtFprintfIntInt-6          188ns ± 1%     187ns ± 1%  -0.85%  (p=0.001 n=10+10)
      FmtFprintfPrefixedInt-6     223ns ± 1%     226ns ± 1%  +1.40%  (p=0.000 n=9+10)
      FmtFprintfFloat-6           380ns ± 1%     379ns ± 0%    ~     (p=0.350 n=9+7)
      FmtManyArgs-6               784ns ± 0%     790ns ± 1%  +0.81%  (p=0.000 n=10+9)
      GobDecode-6                10.7ms ± 1%    10.8ms ± 0%  +0.68%  (p=0.000 n=10+10)
      GobEncode-6                8.95ms ± 0%    8.94ms ± 0%    ~     (p=0.436 n=10+10)
      Gzip-6                      378ms ± 0%     378ms ± 0%    ~     (p=0.696 n=8+10)
      Gunzip-6                   60.5ms ± 0%    60.9ms ± 0%  +0.73%  (p=0.000 n=8+10)
      HTTPClientServer-6          109µs ± 3%     111µs ± 2%  +2.53%  (p=0.000 n=10+10)
      JSONEncode-6               20.2ms ± 0%    20.2ms ± 0%    ~     (p=0.382 n=8+8)
      JSONDecode-6               85.9ms ± 1%    84.5ms ± 0%  -1.59%  (p=0.000 n=10+8)
      Mandelbrot200-6            6.89ms ± 0%    6.85ms ± 1%  -0.49%  (p=0.000 n=9+10)
      GoParse-6                  5.49ms ± 0%    5.40ms ± 0%  -1.63%  (p=0.000 n=8+10)
      RegexpMatchEasy0_32-6       126ns ± 1%     129ns ± 1%  +2.14%  (p=0.000 n=10+10)
      RegexpMatchEasy0_1K-6       320ns ± 1%     317ns ± 2%    ~     (p=0.089 n=10+10)
      RegexpMatchEasy1_32-6       119ns ± 2%     121ns ± 4%    ~     (p=0.591 n=10+10)
      RegexpMatchEasy1_1K-6       544ns ± 1%     541ns ± 0%  -0.67%  (p=0.020 n=8+8)
      RegexpMatchMedium_32-6      184ns ± 1%     184ns ± 1%    ~     (p=0.360 n=10+10)
      RegexpMatchMedium_1K-6     57.7µs ± 2%    58.3µs ± 1%  +1.12%  (p=0.022 n=10+10)
      RegexpMatchHard_32-6       2.72µs ± 5%    2.70µs ± 0%    ~     (p=0.166 n=10+8)
      RegexpMatchHard_1K-6       80.2µs ± 0%    81.0µs ± 0%  +1.01%  (p=0.000 n=8+10)
      Revcomp-6                   607ms ± 0%     601ms ± 2%  -1.00%  (p=0.006 n=8+10)
      Template-6                 93.1ms ± 1%    92.6ms ± 0%  -0.56%  (p=0.000 n=9+9)
      TimeParse-6                 472ns ± 0%     470ns ± 0%  -0.28%  (p=0.001 n=9+9)
      TimeFormat-6                546ns ± 0%     511ns ± 0%  -6.41%  (p=0.001 n=7+7)
      [Geo mean]                 76.4µs         76.3µs       -0.12%
      
      name                     old speed      new speed      delta
      GobDecode-6              71.5MB/s ± 1%  71.1MB/s ± 0%  -0.68%  (p=0.000 n=10+10)
      GobEncode-6              85.8MB/s ± 0%  85.8MB/s ± 0%    ~     (p=0.425 n=10+10)
      Gzip-6                   51.3MB/s ± 0%  51.3MB/s ± 0%    ~     (p=0.680 n=8+10)
      Gunzip-6                  321MB/s ± 0%   318MB/s ± 0%  -0.73%  (p=0.000 n=8+10)
      JSONEncode-6             95.9MB/s ± 0%  96.0MB/s ± 0%    ~     (p=0.367 n=8+8)
      JSONDecode-6             22.6MB/s ± 1%  22.9MB/s ± 0%  +1.62%  (p=0.000 n=10+8)
      GoParse-6                10.6MB/s ± 0%  10.7MB/s ± 0%  +1.64%  (p=0.000 n=8+10)
      RegexpMatchEasy0_32-6     252MB/s ± 1%   247MB/s ± 1%  -2.22%  (p=0.000 n=10+10)
      RegexpMatchEasy0_1K-6    3.19GB/s ± 1%  3.22GB/s ± 2%    ~     (p=0.105 n=10+10)
      RegexpMatchEasy1_32-6     267MB/s ± 2%   264MB/s ± 4%    ~     (p=0.481 n=10+10)
      RegexpMatchEasy1_1K-6    1.88GB/s ± 1%  1.89GB/s ± 0%  +0.62%  (p=0.038 n=8+8)
      RegexpMatchMedium_32-6   5.41MB/s ± 2%  5.43MB/s ± 0%    ~     (p=0.339 n=10+8)
      RegexpMatchMedium_1K-6   17.8MB/s ± 1%  17.6MB/s ± 1%  -1.12%  (p=0.029 n=10+10)
      RegexpMatchHard_32-6     11.8MB/s ± 5%  11.8MB/s ± 0%    ~     (p=0.163 n=10+8)
      RegexpMatchHard_1K-6     12.8MB/s ± 0%  12.6MB/s ± 0%  -1.06%  (p=0.000 n=7+10)
      Revcomp-6                 419MB/s ± 0%   423MB/s ± 2%  +1.02%  (p=0.006 n=8+10)
      Template-6               20.9MB/s ± 0%  21.0MB/s ± 0%  +0.53%  (p=0.000 n=8+8)
      [Geo mean]               77.0MB/s       77.0MB/s       +0.05%
      
      diff --git a/src/cmd/compile/internal/ssa/branchelim.go b/src/cmd/compile/internal/ssa/branchelim.go
      
      Change-Id: Ibdffa9ea9b4c72668617ce3202ec4a83a1cd59be
      Reviewed-on: https://go-review.googlesource.com/107936
      Run-TryBot: Ilya Tocar <ilya.tocar@intel.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarKeith Randall <khr@golang.org>
      25813f9f
    • Russ Cox's avatar
      cmd/vet/all: fix whitelist for CL 108557 · 01a74875
      Russ Cox authored
      Change-Id: I831775db5de92d211495acc012fc4366c7c84851
      Reviewed-on: https://go-review.googlesource.com/109335
      Run-TryBot: Russ Cox <rsc@golang.org>
      Reviewed-by: default avatarRuss Cox <rsc@golang.org>
      01a74875