compiler: omit write barrier for assignment to *(convert(&local))
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 21 Jun 2019 14:34:26 +0000 (14:34 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 21 Jun 2019 14:34:26 +0000 (14:34 +0000)
commit28b9598b64122e232f2998d8fed2f10ebbf78884
tree61e15520c182ee2d61f3e78111672e36494dc133
parentc9b236e5cafaea9d09ff8102140c72eb3d70e302
compiler: omit write barrier for assignment to *(convert(&local))

    Assignments to local variables don't need a write barrier. But
    currently the compiler inserts a write barrier if the LHS is a
    local variable with type converted, as *(convert(&local)). Let
    the compiler recognize this pattern and omit the write barrier.

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

From-SVN: r272550
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/wb.cc