Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
gh-132732: Automatically constant evaluate pure operations#132733
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
58 commits Select commitHold shift + click to select a range
1ffbb6b
Automatically constant evaluate pure operations
Fidget-Spinner691084d
📜🤖 Added by blurb_it.
blurb-it[bot]b89e4dc
Fix tests
Fidget-Spinner0959918
Merge branch 'pure' of github.com:Fidget-Spinner/cpython into pure
Fidget-Spinner2541683
Merge remote-tracking branch 'upstream/main' into pure
Fidget-Spinnerd5b2208
Apply review suggestions
Fidget-Spinner71ced86
reduce diff
Fidget-Spinnera10d5a1
Merge remote-tracking branch 'upstream/main' into pure
Fidget-Spinnerd22f165
Update pycore_opcode_metadata.h
Fidget-Spinner8ae38c7
Apply changes from code review
Fidget-Spinner712a810
Merge remote-tracking branch 'upstream/main' into pure
Fidget-Spinnerdc2d922
Address review, add test
Fidget-Spinnerf3f2a69
Add more tests
Fidget-Spinner53ce10f
Fix tests
Fidget-Spinner17634a8
Push fix noticed by Mark and Brandt
Fidget-Spinner4937c2f
Merge remote-tracking branch 'upstream/main' into pure
Fidget-Spinnerae08b79
Merge remote-tracking branch 'upstream/main' into pure
Fidget-Spinnerc0c6600
remove pure from _POP_CALL_TWO_LOAD_CONST_INLINE_BORROW
Fidget-Spinner6bdd3f9
Merge remote-tracking branch 'upstream/main' into pure
Fidget-Spinnerde8e170
use upstream changes for stackref
Fidget-Spinnerc2f8e22
remove unused comment
Fidget-Spinnerac7e343
Address review
Fidget-Spinner05b822f
fix test
Fidget-Spinnerb4c2e93
fix negative refcount
Fidget-Spinnerd229f57
Merge remote-tracking branch 'upstream/main' into pure
Fidget-Spinnerc4aae6c
Merge remote-tracking branch 'upstream/main' into pure
Fidget-Spinner8552182
Use `REPLACE_OPCODE_IF_EVALUTES_PURE`
Fidget-Spinner703dfc9
Fix test, move is_abstract to subclass attribute
Fidget-Spinnerb278734
fix linter/mypy
Fidget-Spinner73a8b00
remove whitespace
Fidget-Spinner4116a31
Remove PyDict_Type
Fidget-Spinner548b67c
add bool type
Fidget-Spinner74a0208
reduce diff
Fidget-Spinner6a5dc12
Grab identifiers from REPLACE_OPCODE_IF_EVALUATES_PURE
Fidget-Spinner3896775
Merge remote-tracking branch 'upstream/main' into pure
Fidget-Spinner507c80a
Use replacer
Fidget-Spinnerdc68b45
reduce diff
Fidget-Spinner41a271c
Merge remote-tracking branch 'upstream/main' into pure
Fidget-Spinnere88b71a
Update optimizer_generator.py
Fidget-Spinner866510f
Address review (add long functions to allowlist)
Fidget-Spinner01be0c6
fix mypy
Fidget-Spinnerfce79a6
Merge remote-tracking branch 'upstream/main' into pure
Fidget-Spinner9bef4a4
revert changes for add,multiply,sub int
Fidget-Spinner1f76e2c
Fix tests
Fidget-Spinnerefb9888
Merge remote-tracking branch 'upstream/main' into pure
Fidget-Spinner029c92b
Add deopt and error_if, and tests
Fidget-Spinner738d20e
remove is_abstract
Fidget-Spinner202af76
Merge remote-tracking branch 'upstream/main' into pure
Fidget-Spinner4c0c52c
fix tests
Fidget-Spinnere24e9a3
Fix test_opt
Fidget-Spinnerf362866
Merge remote-tracking branch 'upstream/main' into pure
Fidget-Spinnerd54a6f2
Update optimizer_bytecodes.c
Fidget-Spinner2644cb9
Address review
Fidget-Spinner634ed26
Add for _BINARY_OP
Fidget-Spinner0e9ce84
Address review
Fidget-Spinnerf2fc3fc
reduce diff
Fidget-Spinner2408fb0
fix mypy
Fidget-Spinnere40cb06
fix wrong error message
Fidget-SpinnerFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
remove unused comment
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commitc2f8e2223f6e76f1b72787879c0b0a44e5cb1748
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.