8000 GH-130415: Optimize constant comparison in JIT builds by savannahostrowski · Pull Request #131489 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-130415: Optimize constant comparison in JIT builds #131489

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 11 commits into from
Mar 21, 2025
Prev Previous commit
Next Next commit
fix assert
  • Loading branch information
savannahostrowski committed Mar 20, 2025
commit 6c98c24075f2557a36aa4c315f5a23b5d8708eb4
2 changes: 1 addition & 1 deletion Lib/test/test_capi/test_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,7 @@ def testfunc(n):
self.assertIsNotNone(ex)
uops = get_opnames(ex)
self.assertNotIn("_COMPARE_OP_INT", uops)
self.assertNotIn("_POP_TWO_LOAD_CONST_INLINE_BORROW", uops)
self.assertIn("_POP_TWO_LOAD_CONST_INLINE_BORROW", uops)

def global_identity(x):
return x
Expand Down
0