commit | 4dc60d989293d070702024e7dea52b9849f74775 | [log] [tgz] |
---|---|---|
author | Cherry Zhang <cherryyz@google.com> | Sat May 25 13:05:57 2019 -0400 |
committer | Ian Lance Taylor <iant@golang.org> | Thu May 30 17:26:16 2019 +0000 |
tree | 0d5ff4106355ed54e62491cdd19b7e2636c49d56 | |
parent | 84b8000c32f671c6cc89df1290ed6e0170308644 [diff] |
compiler: intrinsify sync/atomic functions Let the Go frontend recognize sync/atomic functions and turn them into intrinsics. Also make sure not to intrinsify calls in go or defer statements. Change-Id: I0b2ead31cb4f44f3ed739416643675f80af72a51 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/178937 Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>