Skip to content

Conversation

@cferry-AMD
Copy link
Collaborator

@cferry-AMD cferry-AMD commented Mar 6, 2025

inferRemS is a signed mod. We want to infer with signed bounds (so inferRemU is not suitable [1]), but return a result between 0 and (mod factor)-1 (a true Euclidean division remainder).

[1] signedRemU for affine_map<(d0) -> (d0 mod 5)>, lbs = [-4], ubs = [-2] would give expr_lb = [2], expr_ub = [4] as a result.

@cferry-AMD cferry-AMD requested a review from mgehre-amd March 6, 2025 14:23
@mgehre-amd mgehre-amd merged commit 350e0bd into feature/fused-ops Mar 6, 2025
5 checks passed
@mgehre-amd mgehre-amd deleted the corentin.mod_bounds branch March 6, 2025 17:18
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