commit | 5ba66998281af9719e5d5ef84fd095181d4cf9a8 | [log] [tgz] |
---|---|---|
author | Alex Light <allight@google.com> | Wed Sep 23 15:04:36 2020 -0700 |
committer | Treehugger Robot <treehugger-gerrit@google.com> | Fri Sep 25 04:46:32 2020 +0000 |
tree | 96d6b307af969eade69f390a1af3ab623523b8a1 | |
parent | 6076b6959ac6dd2f5f6c93d119b37899f70a30a8 [diff] |
Refactor Escape-analysis to use visitors The current escape-analysis is entirely built around finding a single 'does-escape' boolean (and a few ancillary booleans). This change adds a new VisitEscapes function that allows one to more easily track which instructions cause escapes and rewrites the other escape-analysis functions in terms of this VisitEscapes function. Test: ./test.py --host Bug: 67037140 Change-Id: Ie5ad7580544be21713d040c2943cae19ff5414d4