-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
gh-148235: remove duplicate uops _LOAD_CONST_UNDER_INLINE(_BORROW) in JIT
#148236
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
Changes from all commits
4f4d25d
8af132b
5f63c41
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1846,7 +1846,7 @@ def testfunc(n): | |
| self.assertIsNotNone(ex) | ||
| uops = get_opnames(ex) | ||
| self.assertNotIn("_UNARY_INVERT", uops) | ||
| self.assertIn("_INSERT_1_LOAD_CONST_INLINE_BORROW", uops) | ||
| self.assertIn("_LOAD_CONST_INLINE_BORROW", uops) | ||
|
|
||
| def test_compare_op_pop_two_load_const_inline_borrow(self): | ||
| def testfunc(n): | ||
|
|
@@ -3192,8 +3192,8 @@ def f(n): | |
| self.assertEqual(res, TIER2_THRESHOLD) | ||
| uops = get_opnames(ex) | ||
| self.assertNotIn("_LOAD_ATTR_METHOD_NO_DICT", uops) | ||
| self.assertNotIn("_LOAD_CONST_UNDER_INLINE", uops) | ||
| self.assertIn("_LOAD_CONST_UNDER_INLINE_BORROW", uops) | ||
| self.assertNotIn("_INSERT_1_LOAD_CONST_INLINE", uops) | ||
| self.assertIn("_INSERT_1_LOAD_CONST_INLINE_BORROW", uops) | ||
|
|
||
| def test_store_fast_refcount_elimination(self): | ||
| def foo(x): | ||
|
|
@@ -4009,8 +4009,6 @@ class A: | |
| self.assertIsNotNone(ex) | ||
| uops = get_opnames(ex) | ||
| self.assertNotIn("_REPLACE_WITH_TRUE", uops) | ||
| self.assertIn("_INSERT_1_LOAD_CONST_INLINE_BORROW", uops) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why this change?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same reason. |
||
| self.assertEqual(count_ops(ex, "_POP_TOP_NOP"), 1) | ||
|
|
||
| def test_attr_promotion_failure(self): | ||
| # We're not testing for any specific uops here, just | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 this change?
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.
_INSERT_1_LOAD_CONST_INLINE_BORROWhas noop_without_pushentry onmain, therefore not simplified away byremove_unneeded_uops.