compiler: recognize and optimize array range clear

Recognize

	for i := range a { a[i] = zero }

for array or slice a, and rewrite it to call memclr, as the gc
compiler does.

Change-Id: I57e4487a8cd463504624edc1c42199dfe8133174
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/169398
Reviewed-by: Ian Lance Taylor <iant@golang.org>
6 files changed