-
Notifications
You must be signed in to change notification settings - Fork 25.4k
[JIT] Propagate type sharing setting to submodule compilation #44226
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
Conversation
**Summary** At present, the `share_types` argument to `create_script_module` is used to decide whether to reuse a previously created type for a top-level module that has not yet been compiled. However, that setting does not apply to the compilation of submodules of the top-level module; types are still reused if possible. This commit modifies `create_script_module` so that the `share_types` flag is honoured during submodule compilation as well. **Test Plan** This commit adds a unit test to `TestTypeSharing` that checks that submodule types are not shared or reused when `share_types` is set to `False`. **Fixes** This commit fixes #43605. [ghstack-poisoned]
**Summary** At present, the `share_types` argument to `create_script_module` is used to decide whether to reuse a previously created type for a top-level module that has not yet been compiled. However, that setting does not apply to the compilation of submodules of the top-level module; types are still reused if possible. This commit modifies `create_script_module` so that the `share_types` flag is honoured during submodule compilation as well. **Test Plan** This commit adds a unit test to `TestTypeSharing` that checks that submodule types are not shared or reused when `share_types` is set to `False`. **Fixes** This commit fixes #43605. ghstack-source-id: c1dc278 Pull Request resolved: #44226
💊 CI failures summary and remediationsAs of commit ccfaf4f (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group. This comment has been revised 14 times. |
…ion" **Summary** At present, the `share_types` argument to `create_script_module` is used to decide whether to reuse a previously created type for a top-level module that has not yet been compiled. However, that setting does not apply to the compilation of submodules of the top-level module; types are still reused if possible. This commit modifies `create_script_module` so that the `share_types` flag is honoured during submodule compilation as well. **Test Plan** This commit adds a unit test to `TestTypeSharing` that checks that submodule types are not shared or reused when `share_types` is set to `False`. **Fixes** This commit fixes #43605. [ghstack-poisoned]
**Summary** At present, the `share_types` argument to `create_script_module` is used to decide whether to reuse a previously created type for a top-level module that has not yet been compiled. However, that setting does not apply to the compilation of submodules of the top-level module; types are still reused if possible. This commit modifies `create_script_module` so that the `share_types` flag is honoured during submodule compilation as well. **Test Plan** This commit adds a unit test to `TestTypeSharing` that checks that submodule types are not shared or reused when `share_types` is set to `False`. **Fixes** This commit fixes #43605. ghstack-source-id: 00e7531 Pull Request resolved: #44226
…ion" **Summary** At present, the `share_types` argument to `create_script_module` is used to decide whether to reuse a previously created type for a top-level module that has not yet been compiled. However, that setting does not apply to the compilation of submodules of the top-level module; types are still reused if possible. This commit modifies `create_script_module` so that the `share_types` flag is honoured during submodule compilation as well. **Test Plan** This commit adds a unit test to `TestTypeSharing` that checks that submodule types are not shared or reused when `share_types` is set to `False`. **Fixes** This commit fixes #43605. [ghstack-poisoned]
**Summary** At present, the `share_types` argument to `create_script_module` is used to decide whether to reuse a previously created type for a top-level module that has not yet been compiled. However, that setting does not apply to the compilation of submodules of the top-level module; types are still reused if possible. This commit modifies `create_script_module` so that the `share_types` flag is honoured during submodule compilation as well. **Test Plan** This commit adds a unit test to `TestTypeSharing` that checks that submodule types are not shared or reused when `share_types` is set to `False`. **Fixes** This commit fixes #43605. ghstack-source-id: ec07e33 Pull Request resolved: #44226
…ion" **Summary** At present, the `share_types` argument to `create_script_module` is used to decide whether to reuse a previously created type for a top-level module that has not yet been compiled. However, that setting does not apply to the compilation of submodules of the top-level module; types are still reused if possible. This commit modifies `create_script_module` so that the `share_types` flag is honoured during submodule compilation as well. **Test Plan** This commit adds a unit test to `TestTypeSharing` that checks that submodule types are not shared or reused when `share_types` is set to `False`. **Fixes** This commit fixes #43605. Differential Revision: [D23602371](https://our.internmc.facebook.com/intern/diff/D23602371) [ghstack-poisoned]
**Summary** At present, the `share_types` argument to `create_script_module` is used to decide whether to reuse a previously created type for a top-level module that has not yet been compiled. However, that setting does not apply to the compilation of submodules of the top-level module; types are still reused if possible. This commit modifies `create_script_module` so that the `share_types` flag is honoured during submodule compilation as well. **Test Plan** This commit adds a unit test to `TestTypeSharing` that checks that submodule types are not shared or reused when `share_types` is set to `False`. **Fixes** This commit fixes #43605. ghstack-source-id: b257a0e Pull Request resolved: #44226
Codecov Report
@@ Coverage Diff @@
## gh/splitinfinity/38/base #44226 +/- ##
============================================================
- Coverage 68.00% 68.00% -0.01%
============================================================
Files 382 382
Lines 49391 49394 +3
============================================================
+ Hits 33586 33588 +2
- Misses 15805 15806 +1
Continue to review full report at Codecov.
|
@SplitInfinity merged this pull request in 89ac30a. |
Stack from ghstack:
Summary
At present, the
share_types
argument tocreate_script_module
is usedto decide whether to reuse a previously created type for a top-level
module that has not yet been compiled. However, that setting does not apply
to the compilation of submodules of the top-level module; types are
still reused if possible.
This commit modifies
create_script_module
so that theshare_types
flag is honoured during submodule compilation as well.
Test Plan
This commit adds a unit test to
TestTypeSharing
that checks thatsubmodule types are not shared or reused when
share_types
is set toFalse
.Fixes
This commit fixes #43605.
Differential Revision: D23602371