Skip to content

Conversation

jikechao
Copy link
Member

@jikechao jikechao commented May 12, 2025

Fix #17960.

This PR fixes a bug where MetaSchedule fails on kernels containing tir.While due to missing FLOP estimation. The patch adds conservative handling by:

  • Evaluating the loop condition and body once (since static iteration count is unknown)
  • Adding a TODO for future improvements with bounded loop analysis

This unblocks compilation while being transparent about limitations. Future work can enhance accuracy via loop analysis or annotations.

cc @Hzfengsy @tqchen @vinx13

@github-actions github-actions bot requested review from Hzfengsy, tqchen and vinx13 May 13, 2025 11:40
@tqchen tqchen merged commit 561d085 into apache:main May 13, 2025
11 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.

[Bug][MetaSchedule] TVMError: Do not have a default for tir.While
3 participants