Tiramisu-Compiler / TiraLib

0 stars 2 forks source link

Use Local Logger and Fix Crash with Single-Iteration Loops #33

Closed Mascinissa closed 1 week ago

Mascinissa commented 2 weeks ago

Summary of Changes

  1. Switched to Local Logger Updated TiraLib to use its own local logger instead of the root logger. This keeps TiraLib's logging separate from other imported modules, avoiding any unexpected settings interference. Related commits: Commit 1, Commit 2

  2. Fixed Bug with Single-Iteration Loops in ISL Tree Construction Addressed a bug occurring when constructing a tree from ISL for programs containing single-iteration loops. ISL’s simplification pass skips such loops, rendering their computations "loopless" which previously caused TiraLib to crash when attempting to identify a parent loop. An example of such programs is PolyBench's correlation kernel. Solution: Modified TiraLib to also skip these computations, as they are not involved in transformations or legality checking anyways. Related commit: Commit