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.

Change-Id: Iabd73cd2890ff62850c316079bc1f25cda9870fc
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/182541
Reviewed-by: Ian Lance Taylor <iant@golang.org>
1 file changed