Sorry I still didn’t quite get it. IIUC, are you working on a TOPI schedule template you made, and that template may have different tiling ways? Most TOPI templates fix the tiling structure and use define_split
to represent the best tile sizes, which by default are dividable factors, meaning that the lowered IR should not have tail loops all the time. In this case, the lowered IR structure should be the same.
Based on the above description, you can imagine AutoTVM is already working on finding the optimal performance in a fixed IR structure at the most times. In other words, if we have a way to determine the optimal performance when the IR structure is determined, we can directly use it as the AutoTVM tuner in most cases. However, AFAIK, there’s no such approach yet.