Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[compiler] Migrate PruneNonEscapingScopes to HIR
Summary: PruneNonEscapingScopes does a pretty powerful escape analysis, which we might want to apply for other purposes in our HIR passes. This ports this pass to HIR. For the most part, this implementation is identical to the ReactiveFunction version. It now handles phis instead of conditional ReactiveExpressions, which it does by treating all the phi operands as possibly aliasing the lvalue. This also requires that we iterate the aliasing analysis to a fixpoint, because the HIR has backedges which the ReactiveFunctions don't. In our fixtures, this only changes one result, which appears to have become more accurate. I plan on testing this internally in a sync before landing. ghstack-source-id: 63aad5c97e8bd6ea58fb1363854d081f50a31fa3 Pull Request resolved: #31882
- Loading branch information