Skip to content

Add simplification for (x % a) % b when a % b == 0.#39412

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_885485854
Mar 19, 2026
Merged

Add simplification for (x % a) % b when a % b == 0.#39412
copybara-service[bot] merged 1 commit intomainfrom
test_885485854

Conversation

@copybara-service
Copy link
Copy Markdown

@copybara-service copybara-service Bot commented Mar 18, 2026

Add simplification for (x % a) % b when a % b == 0.

Rewrite (x % a) % b to x % b in SymbolicExpr::Canonicalize when the inner divisor a is a multiple of the outer divisor b.

This fix xla/codegen/tiling:tiled_hlo_schedule_test after migration.

@copybara-service copybara-service Bot force-pushed the test_885485854 branch 4 times, most recently from a2945bb to 4af2b78 Compare March 19, 2026 08:42
Rewrite (x % a) % b to x % b in SymbolicExpr::Canonicalize when the inner divisor a is a multiple of the outer divisor b.

This fix xla/codegen/tiling:tiled_hlo_schedule_test after migration.

PiperOrigin-RevId: 886045807
@copybara-service copybara-service Bot merged commit 418f4e6 into main Mar 19, 2026
@copybara-service copybara-service Bot deleted the test_885485854 branch March 19, 2026 09:11
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.

1 participant