Skip to content

Avoid building an ISL AST for illegal schedules - #11

Merged
Mascinissa merged 1 commit into
Tiramisu-Compiler:mainfrom
Mascinissa:ast-gen-skip
Aug 9, 2026
Merged

Avoid building an ISL AST for illegal schedules#11
Mascinissa merged 1 commit into
Tiramisu-Compiler:mainfrom
Mascinissa:ast-gen-skip

Conversation

@Mascinissa

Copy link
Copy Markdown
Collaborator

Companion Python changes: TiraLib PR #59.

The server used to call gen_time_space_domain() and gen_isl_ast() even after the schedule had failed legality checks. For some invalid transformed domains, that AST construction can take hours or use excessive memory.

The server now builds and returns an ISL AST only when the final legality result is true. Legal schedules are unchanged. Illegal schedules return their verdict with an empty AST.

The shared computation-list parser now also removes duplicate computation pointers while preserving their first occurrence. This prevents repeated names in a schedule string from applying actions such as tiling more than once.

Tests cover empty ASTs for illegal schedules and verify that repeated tiling targets are equivalent to a single target. The TiraLibCpp suite passes all 23 tests.

@Mascinissa
Mascinissa merged commit 822345c into Tiramisu-Compiler:main Aug 9, 2026
1 check passed
@Mascinissa
Mascinissa deleted the ast-gen-skip branch August 9, 2026 09:12
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