Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-131798: JIT: Narrow the return type of_GET_LEN
to int#133345
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
23 commits Select commitHold shift + click to select a range
cabe8f1
gh-131798: JIT: Narrow the return type of _GET_LEN to int
Zheaoli1f8a607
Add news
Zheaolif2f71d9
Fix typo
Zheaoli1662b47
Fix review idea
Zheaoli52ce698
Fix review idea
Zheaolib1640ed
Fix review idea
Zheaolicf17d92
fix review idea
Zheaolic401539
fix review idea
Zheaoli619a846
fix review idea
Zheaoli9adefc3
fix review idea
Zheaoli9c6efcb
fix review idea
Zheaoli69b929b
Merge branch 'main' into manjusaka/get-len
Zheaolid1e3a2b
fix review idea
Zheaolie0e3745
fix review idea
Zheaoli81c4996
fix review idea
Zheaoli93e1e86
fix review idea
Zheaoli6b5282f
fix review idea
Zheaoli2eefeb3
fix review idea
Zheaoli9c58f2c
fix review idea
Zheaolif9822e9
fix review idea
Zheaoli6a06aff
fix review idea
Zheaoli6d92614
fix review idea
Zheaoli5cfbad4
format code
ZheaoliFile 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
fix review idea
Signed-off-by: Manjusaka <me@manjusaka.me>
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commitf9822e96160413b3b4d23110fc3b7fe38bc735dd
There are no files selected for viewing
13 changes: 13 additions & 0 deletionsLib/test/test_capi/test_opt.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1939,6 +1939,19 @@ def testfunc(n): | ||
self.assertNotIn("_GUARD_NOS_INT", uops) | ||
Zheaoli marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
self.assertIn("_LOAD_CONST_INLINE_BORROW", uops) | ||
def test_get_len_with_non_const_tuple(self): | ||
def testfunc(n): | ||
x = 0.0 | ||
for _ in range(n): | ||
match (object(), object()): | ||
case [_, _]: | ||
x += 1.0 | ||
return x | ||
res, ex = self._run_with_optimizer(testfunc, TIER2_THRESHOLD) | ||
self.assertEqual(int(res), TIER2_THRESHOLD) | ||
uops = get_opnames(ex) | ||
self.assertNotIn("_GUARD_NOS_INT", uops) | ||
self.assertIn("_LOAD_CONST_INLINE_BORROW", uops) | ||
def test_get_len_with_non_tuple(self): | ||
def testfunc(n): | ||
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.