-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
gh-93678: add _testinternalcapi.optimize_cfg() and test utils for compiler optimization unit tests #96007
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
gh-93678: add _testinternalcapi.optimize_cfg() and test utils for compiler optimization unit tests #96007
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7d44721
gh-93678: added _testinternalcapi.optimize_cfg() function and test ut…
iritkatriel e5cc736
📜🤖 Added by blurb_it.
blurb-it[bot] 3089eed
Merge remote-tracking branch 'upstream/main' into optimize_func_1
iritkatriel 12c1f57
regen
iritkatriel a68483a
Merge remote-tracking branch 'upstream/main' into optimize_func_1
iritkatriel 2818fd3
long long --> uintptr_t, and added a comment clarifying that the poin…
iritkatriel 4339460
Revert "long long --> uintptr_t, and added a comment clarifying that …
iritkatriel b45b11e
Revert "Revert "long long --> uintptr_t, and added a comment clarifyi…
iritkatriel fb746ce
one more cast
iritkatriel 78f3fa9
fix whitespace
iritkatriel ebb10bb
calculate block ID and use it for label, instead of address
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
Revert "long long --> uintptr_t, and added a comment clarifying that …
…the pointer is used as a unique ID" This reverts commit 2818fd3.
- Loading branch information
commit 4339460e5d6e7ef75ea0ea499a7da5a763439b12
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
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.
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.
Why 64bit, not 32bit?
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.
Two lines down,
instr->i_target
is a pointer, and I'm passing its address back to python as the label of the block. (It get normalised by the test harness).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.
If it is an address, it should be
uintptr_t
, and add a comment that it just an ID.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.
With uintptr_t the test fail on the Windows x86 buildbot.
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.
I changed to (small) calculated block IDs, so we don't have the issue anymore.