-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-126835: Move constant unaryop & binop folding to CFG #129550
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
04b4a84
move binop folding to cfg
WolframAlph a6babab
update tests
WolframAlph 0fa7c4c
add match case folding tests
WolframAlph 27b1a09
add peepholer tests
WolframAlph d3df8c8
polish ast code
WolframAlph e82841a
add assertions
WolframAlph cd6fbd7
use IS_NUMERIC_CONST_EXPR
WolframAlph 300976e
bring back tests
WolframAlph 3240d8e
move unaryop to cfg
WolframAlph 74d2275
add tests
WolframAlph 8358e28
cancel out unary not
WolframAlph c1a1be5
fix optimize_if_const_unaryop
WolframAlph ef9221a
add test_optimize_unary_not
WolframAlph 598adce
add optimize_unary_not_non_const
WolframAlph bb60d4c
add tests
WolframAlph eb99870
add tests
WolframAlph c93627e
add static
WolframAlph f0f044a
polish
WolframAlph a02ac66
add unaryop folding tests
WolframAlph 2739fa0
add not not test to catch misoptimized case
WolframAlph 258a5b6
revert old unarynot handing, add contains/is + unarynot folding
WolframAlph 59ee897
address reviews
WolframAlph 91ea2fa
address reviews
WolframAlph 2c5ee86
simplify optimize_if_const_unaryop
WolframAlph 0399fce
address reviews
WolframAlph 3c53923
simplify instr_make_load_const
WolframAlph a6a06c8
address review for tests
WolframAlph 2ea8425
replace macros
WolframAlph 7c9c69b
update peepholer test
WolframAlph 099afba
define is_unarynegative_const_complex_expr & is_allowed_match_case_bi…
WolframAlph 0dad7c1
try to fold match case expression without checks
WolframAlph 1e8b552
simplify folding
WolframAlph f4e9a42
address review
WolframAlph 2dba23f
minor adjustments
WolframAlph cafbc61
Merge branch 'main' into fold-binop-cfg
iritkatriel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add tests
- Loading branch information
commit bb60d4cf23d6ffc36ca7c672a5ed244e1daa9abc
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.
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.
Uh oh!
There was an error while loading. Please reload this page.