Skip to content

[Tests] Update test_adaptive_pooling_window expected IR for const-int-bound fix#20023

Merged
tlopex merged 1 commit into
apache:mainfrom
sbinabdullah:fix-adaptive-pool-test
Jul 17, 2026
Merged

[Tests] Update test_adaptive_pooling_window expected IR for const-int-bound fix#20023
tlopex merged 1 commit into
apache:mainfrom
sbinabdullah:fix-adaptive-pool-test

Conversation

@sbinabdullah

Copy link
Copy Markdown
Contributor

Followup to #19978: the const-int-bound modular-set fix correctly prevents the simplifier from over-folding the adaptive pool window extent. The previous expected IR used the simplified closed form (v_ax2 % 3 * 4 + 16) // 12 + 1, which was only reachable because the buggy bound let CanProve prove an invalid predicate. After the fix the generated IR retains the correct T.Select form, so update the expected IR to match and remove the xfail marker that was added in #19978.

This branch is based on current main so the xfail removal is explicit (addressing feedback from @tlopex on the previous attempt in #19995).

…-bound fix

Followup to apache#19978: the const-int-bound modular-set fix
correctly prevents the simplifier from over-folding the adaptive pool
window extent. The previous expected IR used the simplified closed form
(v_ax2 % 3 * 4 + 16) // 12 + 1, which was only reachable because the
buggy bound let CanProve prove an invalid predicate. After the fix the
generated IR retains the correct T.Select form, so update the expected
IR to match and remove the xfail marker that was added in apache#19978.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the @pytest.mark.xfail decorator from the test_adaptive_pooling_window test in tests/python/te/test_te_create_primfunc.py. It updates the expected TIR workload by renaming a block to adaptive_pool_sum_l1 and adjusting the loop bounds and division factor calculations to use T.Select expressions, aligning the test with the updated adaptive pool window extent behavior. There are no review comments, so I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@tlopex tlopex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tlopex
tlopex merged commit d33a447 into apache:main Jul 17, 2026
8 checks passed
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