Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIR][LoopPartition] enforcement on loop partition control #17584

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wrongtest-intellif
Copy link
Contributor

@wrongtest-intellif wrongtest-intellif commented Jan 7, 2025

The change wants to merge set of finegrained control improvement on loop partition pass.

  1. Add an annotation intrinsic T.ignore_loop_partition, which mark the wrapped predicate not to take part in the loop partition phase. Since in sometimes loop partition would enlarge the generated code size and we want to preserve some predicates intentionally.

  2. Add patch for EQ predicate partition. Try solve a <= b && b <= a instead if solve a==b directly failed.

  3. Fix TryPartition's return statement. Since the caller handle the return value by

    • If undef, try recursive solving.
    • If defined, treat as a successfully partioned result stmt.

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