-
Notifications
You must be signed in to change notification settings - Fork 47.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[compiler] Add pruned-scope terminal in HIR #29837
Conversation
Adds the HIR equivalent of a pruned-scope, allowing us to start porting the scope-pruning passes to operate on HIR. [ghstack-poisoned]
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Comparing: d172bda...2e39ef7 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: Expand to show
|
Adds the HIR equivalent of a pruned-scope, allowing us to start porting the scope-pruning passes to operate on HIR. ghstack-source-id: dbbdc43219123467acc1a531d8276e8b9cc91e14 Pull Request resolved: #29837
@@ -851,7 +851,8 @@ export function mapTerminalSuccessors( | |||
loc: terminal.loc, | |||
}; | |||
} | |||
case "scope": { | |||
case "scope": | |||
case "pruned-scope": { | |||
const block = fn(terminal.block); | |||
const fallthrough = fn(terminal.fallthrough); | |||
return { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @josephsavona, would it be appropriate to change the value of the return value's kind
to terminal.kind
?
https://github.com/facebook/react/pull/29837/files/2e39ef7c24a5155110929c19f918842972c58989#diff-8a37300261fbcd405210aeb6f21ea36db52abdc192b1215262ce2358f9bcc762L858
Stack from ghstack (oldest at bottom):
Adds the HIR equivalent of a pruned-scope, allowing us to start porting the scope-pruning passes to operate on HIR.