1. 26 Apr, 2016 3 commits
    • David Crawshaw's avatar
      cmd/link: correctly decode name length · 96b8f70e
      David Crawshaw authored
      The linker was incorrectly decoding type name lengths, causing
      typelinks to be sorted out of order and in cases where the name was
      the exact right length, linker panics.
      
      Added a test to the reflect package that causes TestTypelinksSorted
      to fail before this CL. It's not the exact failure seen in #15448
      but it has the same cause: decodetype_name calculating the wrong
      length.
      
      The equivalent decoders in reflect/type.go and runtime/type.go
      have the parenthesis in the right place.
      
      Fixes #15448
      
      Change-Id: I33257633d812b7d2091393cb9d6cc8a73e0138c8
      Reviewed-on: https://go-review.googlesource.com/22403Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      96b8f70e
    • David Chase's avatar
      cmd/compile: fix another bug in dominator computation · 0b6332eb
      David Chase authored
      Here, "fix" means "replace".  The new dominator computation
      is the "simple" algorithm from Lengauer and Tarjan's TOPLAS
      paper, with minimal changes.
      
      Also included is a test that tweaks the fixed error.
      
      Change-Id: I0abdf53d5d64df1e67e4e62f55e88957045cd63b
      Reviewed-on: https://go-review.googlesource.com/22401
      Run-TryBot: David Chase <drchase@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarKeith Randall <khr@golang.org>
      0b6332eb
    • Ilya Tocar's avatar
      strings: use SSE4.2 in strings.Index on AMD64 · 6b02a192
      Ilya Tocar authored
      Use PCMPESTRI instruction if available.
      
      Index-4              21.1ns ± 0%  21.1ns ± 0%     ~     (all samples are equal)
      IndexHard1-4          395µs ± 0%   105µs ± 0%  -73.53%        (p=0.000 n=19+20)
      IndexHard2-4          300µs ± 0%   147µs ± 0%  -51.11%        (p=0.000 n=19+20)
      IndexHard3-4          665µs ± 0%   665µs ± 0%     ~           (p=0.942 n=16+19)
      
      Change-Id: I4f66794164740a2b939eb1c78934e2390b489064
      Reviewed-on: https://go-review.googlesource.com/22337
      Run-TryBot: Ilya Tocar <ilya.tocar@intel.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
      6b02a192
  2. 25 Apr, 2016 13 commits
  3. 24 Apr, 2016 9 commits
  4. 23 Apr, 2016 5 commits
  5. 22 Apr, 2016 10 commits