escape: Implement flood phase.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 14 Jun 2016 17:20:33 +0000 (17:20 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 14 Jun 2016 17:20:33 +0000 (17:20 +0000)
commit079d2e14e3cb6c8306b1791b780e305aff910804
tree7e63b9f510cb285d3fd9ecb391fe366ef32d7178
parenteed7fbc5e35259367407b809d3b8e17a9552f5ee
escape: Implement flood phase.

    Walks the connection graphs built in the assign phase from the
    function context's sink, propagating the escape level to each
    visited node and uncovering nodes that leak out of their scope
    which implies they must be heap allocated.

    Reviewed-on: https://go-review.googlesource.com/18413

From-SVN: r237453
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/escape.cc