Repository navigation
[ROCm] Do rewrite math.fpowi - #20281
Merged
Merged
Conversation
Signed-off-by: Benoit Jacob <[email protected]>
hanhanW
approved these changes
Mar 17, 2025
bjacob
enabled auto-merge (squash)
March 17, 2025 18:52
bjacob
added a commit
that referenced
this pull request
Mar 18, 2025
This is a follow-up to #20281 which lacked a test, and had left the c++ logic in a state that was prone to unintentional regression. Also, this ensures that the `math.fpowi` rewrite happens even with `-iree-codegen-gpu-native-math-precision`, which is intentional as `math.fpowi` is not really a math function, like the comment explains. Signed-off-by: Benoit Jacob <[email protected]>
Eliasj42
pushed a commit
that referenced
this pull request
Mar 24, 2025
When in #20222 we dropped all math rewrites on ROCm, we lost an important rewrite of `math.fpowi` to multiplications. This caused the regression flagged by @AmosLewis in #20222 (comment). Signed-off-by: Benoit Jacob <[email protected]> Signed-off-by: Elias Joseph <[email protected]>
Eliasj42
pushed a commit
that referenced
this pull request
Mar 24, 2025
This is a follow-up to #20281 which lacked a test, and had left the c++ logic in a state that was prone to unintentional regression. Also, this ensures that the `math.fpowi` rewrite happens even with `-iree-codegen-gpu-native-math-precision`, which is intentional as `math.fpowi` is not really a math function, like the comment explains. Signed-off-by: Benoit Jacob <[email protected]> Signed-off-by: Elias Joseph <[email protected]>
AWoloszyn
pushed a commit
that referenced
this pull request
Dec 1, 2025
When in #20222 we dropped all math rewrites on ROCm, we lost an important rewrite of `math.fpowi` to multiplications. This caused the regression flagged by @AmosLewis in #20222 (comment). Signed-off-by: Benoit Jacob <[email protected]>
AWoloszyn
pushed a commit
that referenced
this pull request
Dec 1, 2025
This is a follow-up to #20281 which lacked a test, and had left the c++ logic in a state that was prone to unintentional regression. Also, this ensures that the `math.fpowi` rewrite happens even with `-iree-codegen-gpu-native-math-precision`, which is intentional as `math.fpowi` is not really a math function, like the comment explains. Signed-off-by: Benoit Jacob <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
When in #20222 we dropped all math rewrites on ROCm, we lost an important rewrite of
math.fpowito multiplications. This caused the regression flagged by @AmosLewis in #20222 (comment).