Skip to content

Make math.fpowi rewrite more systematic and test it. - #20293

Merged
bjacob merged 1 commit into
iree-org:mainfrom
bjacob:test-do-rewrite-fpowi
Mar 18, 2025
Merged

bjacob merged 1 commit into
iree-org:mainfrom
bjacob:test-do-rewrite-fpowi

Conversation

@bjacob

@bjacob bjacob commented Mar 18, 2025

Copy link
Copy Markdown
Collaborator

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]>
@bjacob
bjacob requested a review from AmosLewis March 18, 2025 14:34
@bjacob
bjacob marked this pull request as ready for review March 18, 2025 14:37
@bjacob
bjacob requested a review from hanhanW as a code owner March 18, 2025 14:37
@bjacob
bjacob force-pushed the test-do-rewrite-fpowi branch from c8fea26 to b14e2db Compare March 18, 2025 14:37
@bjacob
bjacob merged commit 6d9f736 into iree-org:main Mar 18, 2025
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
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]>
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.

2 participants