• Martin Möhrmann's avatar
    runtime: remove unused prefetch functions · 7045e6f6
    Martin Möhrmann authored
    The only non test user of the assembler prefetch functions is the
    heapBits.prefetch function which is itself unused.
    
    The runtime prefetch functions have no functionality on most platforms
    and are not inlineable since they are written in assembler. The function
    call overhead eliminates the performance gains that could be achieved with
    prefetching and would degrade performance for platforms where the functions
    are no-ops.
    
    If prefetch functions are needed back again later they can be improved
    by avoiding the function call overhead and implementing them as intrinsics.
    
    Change-Id: I52c553cf3607ffe09f0441c6e7a0a818cb21117d
    Reviewed-on: https://go-review.googlesource.com/44370
    Run-TryBot: Martin Möhrmann <moehrmann@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarAustin Clements <austin@google.com>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    7045e6f6
asm_amd64p32.s 21.8 KB