Skip to content

Enable Modulo 1 simplification in SymbolicExpr.#39421

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

Enable Modulo 1 simplification in SymbolicExpr.#39421
copybara-service[bot] merged 1 commit intomainfrom
test_885562759

Conversation

@copybara-service
Copy link
Copy Markdown

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

Enable Modulo 1 simplification in SymbolicExpr.

This change adds a basic simplification rule for the modulo operator in SymbolicExpr, where x % 1 and x % -1 are simplified to 0. This allows a failing test in IndexingAnalysis to pass. I also added x / 1 basic simplification (add and mul were already there).

This is still a temporary solution. Ideally we should run canonicalizer at creation but this will break many tests so I am planning to do it after finalizing the migration.

@copybara-service copybara-service Bot force-pushed the test_885562759 branch 2 times, most recently from b0affcb to 576c58e Compare March 19, 2026 10:41
This change adds a basic simplification rule for the modulo operator in SymbolicExpr, where `x % 1` and `x % -1` are simplified to 0. This allows a failing test in IndexingAnalysis to pass. I also added `x / 1` basic simplification (add and mul were already there).

This is still a temporary solution. Ideally we should run canonicalizer at creation but this will break many tests so I am planning to do it after finalizing the migration.

PiperOrigin-RevId: 886087149
@copybara-service copybara-service Bot merged commit c3d9fb7 into main Mar 19, 2026
@copybara-service copybara-service Bot deleted the test_885562759 branch March 19, 2026 11:08
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