diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-06-25 22:23:49 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-06-25 22:23:49 +0000 |
commit | 787732cdd12218f31dced23a9c427b29c721a9d6 (patch) | |
tree | ba26ce38ad8bff564c5420b549f769a10d715f43 /gcc/fold-const.c | |
parent | 4fdb6fb6aebfba933ee8b07ff395d236180b5d67 (diff) | |
download | gcc-787732cdd12218f31dced23a9c427b29c721a9d6.zip gcc-787732cdd12218f31dced23a9c427b29c721a9d6.tar.gz gcc-787732cdd12218f31dced23a9c427b29c721a9d6.tar.bz2 |
compiler: improve escape analysis
This CL ports recent enhancements of the escape analysis in the
gc compiler to gofrontend.
- CL 99335: unnamed receiver should not escape.
- CL 105257: propagate loop depth to field. This prevents it
from escaping when a field's address is taken inside a loop
(but not otherwise escape).
- CL 107597: use element type for "indirection" of slice/string.
This prevents the slice/string from escaping when only the
element, in case that it is pointerless, flows to outer scope.
Reviewed-on: https://go-review.googlesource.com/120760
From-SVN: r262120
Diffstat (limited to 'gcc/fold-const.c')
0 files changed, 0 insertions, 0 deletions