• Josh Bleecher Snyder's avatar
    cmd/compile: optimize bvec routines · 60c76f76
    Josh Bleecher Snyder authored
    The recent improvements to the prove pass
    make it possible to provide bounds
    hints to the compiler in some bvec routines.
    
    This speeds up the compilation of the code in
    
    name  old time/op       new time/op       delta
    Pkg         7.93s ± 4%        7.69s ± 3%  -2.98%  (p=0.000 n=29+26)
    
    While we're here, clean up some C-isms.
    
    Updates #13554
    Updates #20393
    
    Change-Id: I47a0ec68543a9fc95c5359c3f37813fb529cb4f0
    Reviewed-on: https://go-review.googlesource.com/110560
    Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarMatthew Dempsky <mdempsky@google.com>
    60c76f76
bv.go 3.5 KB