[Tests] Update test_adaptive_pooling_window expected IR for const-int-bound fix#19995
[Tests] Update test_adaptive_pooling_window expected IR for const-int-bound fix#19995sbinabdullah wants to merge 1 commit into
Conversation
…-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.
There was a problem hiding this comment.
Code Review
This pull request updates the test workload in test_te_create_primfunc.py by renaming a spatial block to adaptive_pool_sum_l1 and replacing the simplified grid range bounds and division factors with more precise T.Select expressions. There are no review comments, and I have no additional 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.
|
@tvm-bot rerun |
|
Failed to re-run CI in https://github.com/apache/tvm/actions/runs/29456763618 Detailswith response |
Summary
Followup to #19978 ([Arith] Fix const-int-bound modular-set tightening for Mod/FloorMod).
The const-int-bound fix correctly prevents the simplifier from over-folding the adaptive pool window extent expression. The previous expected IR in
test_adaptive_pooling_windowused the simplified closed form(v_ax2 % 3 * 4 + 16) // 12 + 1, which was only reachable because the buggy FloorMod bound letCanProvevalidate an invalid predicate. After the fix, the generated IR correctly retains theT.Selectform, so this PR updates the expected IR to match and removes thexfailmarker that was added in #19978.Changes
tests/python/te/test_te_create_primfunc.py: updated thetir_workloadintest_adaptive_pooling_windowto match the generated IR (loop extents and division now useT.Selectform; block nameadaptive_pool_sum_l1), and removed the@pytest.mark.xfaildecorator.Verification
xfail):test_te_create_primfunc.pysuite passes with no regressions.