Updated CompilerOptimizations (markdown)

Dmitry Vyukov 2015-02-05 12:21:41 +03:00
parent 8e77f6b1e6
commit 9b72758a61

@ -36,7 +36,7 @@ decisions for the gc toolchain.
### Escape analysis
Gc compiler does global escape analysis across function and package boundaries. However, there are lots of cases where it gives up. For example, anything assigned to any indirection (`*p = ...`; `a[i] = ...`) is considered escaped. Other things that can inhibit analysis are: function calls, package boundaries, slice literals, subslicing and indexing, etc. Full rules are too complex to describe, so check the `-m` output.
Gc compiler does global escape analysis across function and package boundaries. However, there are lots of cases where it gives up. For example, anything assigned to any kind of indirection (`*p = ...`) is considered escaped. Other things that can inhibit analysis are: function calls, package boundaries, slice literals, subslicing and indexing, etc. Full rules are too complex to describe, so check the `-m` output.
* **gc:** 1.0+
* **gccgo:** not yet.