gh-155486: Allow non-compact integers in TO_BOOL_INT - #155531
Conversation
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
thanks for doing this, could you please add a new test to test the guard elimination? |
Sure. I added a test for the guard elimination. |
|
LGTM now. |
|
I found that the CI failure was caused by a bug in GDB 17.1 on AArch64. I’ll try to fix the JIT GDB tests later. |
|
Thanks @marinelay for the PR, and @Fidget-Spinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
Sorry, @marinelay and @Fidget-Spinner, I could not cleanly backport this to |
|
@marinelay can you please open a backport? |
|
GH-155699 is a backport of this pull request to the 3.15 branch. |
|
GH-155700 is a backport of this pull request to the 3.15 branch. |
This PR adds an exact-integer guard,
_GUARD_TOS_EXACT_INT, forTO_BOOL_INT, allowing non-compact exact integers to remain specializedTO_BOOL_INTrepeatedly misses for non-compact exact integers #155486