compiler: make use of specialized fast map routines
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 6 Jun 2019 00:44:01 +0000 (00:44 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 6 Jun 2019 00:44:01 +0000 (00:44 +0000)
commit269f05ff58289cfdd3a35f0d9afc8e229a98f50e
tree5375b70ffa2d9dda8fe739d2ee1a4a412d7d5c96
parent91bd9240f918e758b75e362847f4fc3de8f99a12
compiler: make use of specialized fast map routines

    In the runtime there are specialized fast map routines for
    certain kep types. This CL lets the compiler make use of these
    functions, instead of always using the generic ones.

    As we now generate multiple versions of map delete calls, to make
    things easier we delay the expansion of the built-in delete
    function to flatten phase.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/180858

From-SVN: r271983
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/escape.cc
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/runtime.def
gcc/go/gofrontend/statements.cc
gcc/go/gofrontend/types.cc
gcc/go/gofrontend/types.h
libgo/go/runtime/map_fast32.go
libgo/go/runtime/map_fast64.go
libgo/go/runtime/map_faststr.go