Skip to content

Conversation

@Maratyszcza
Copy link
Collaborator

In the common case of 64-bit dividend and 32-bit divisor, this change makes sure the subtraction of 1 is done in 32-bit arithmetic instead of 64-bit arithmetic previously.

New contributor declaration

  • I am not making a trivial change, such as fixing a typo in a comment.

  • I have written a PR description following these
    rules.

  • I have run pre-commit run --from-ref origin/main --to-ref HEAD.

  • Select one of the following.

    • I have added tests.
      • /test for lit tests
      • /unittest for C++ tests
      • /python/test for end-to-end tests
    • This PR does not need a test because no new functionality added.
  • Select one of the following.

    • I have not added any lit tests.
    • The lit tests I have added follow these best practices,
      including the "tests should be minimal" section. (Usually running Python code
      and using the instructions it generates is not minimal.)

In the common case of 64-bit dividend and 32-bit divisor, this change makes sure the subtraction of 1 is done in 32-bit arithmetic instead of 64-bit arithmetic previously.
@Maratyszcza Maratyszcza enabled auto-merge (squash) November 7, 2025 19:25
@Maratyszcza Maratyszcza merged commit e8b1f46 into main Nov 7, 2025
8 of 9 checks passed
@Maratyszcza Maratyszcza deleted the marat/optimize-cdiv branch November 7, 2025 19:48
tmoreau89 pushed a commit to tmoreau89/triton that referenced this pull request Dec 1, 2025
In the common case of 64-bit dividend and 32-bit divisor, this change
makes sure the subtraction of 1 is done in 32-bit arithmetic instead of
64-bit arithmetic previously.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants