Skip to content

Commit

Permalink
check stage_pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jinhongyii committed Jul 14, 2021
1 parent dca4367 commit a5a7f4f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/tir/schedule/primitive/fuse_split.cc
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ Array<StmtSRef> Split(ScheduleState self, const StmtSRef& loop_sref,
ICHECK(outer_loop);
outer_stmt = outer_loop->body;
}
//check stage pipeline is still true after transformation
GetScopeRootAndCheckStagePipeline(self, result_srefs[0]);
return result_srefs;
}

Expand Down Expand Up @@ -476,7 +478,10 @@ StmtSRef Fuse(ScheduleState self, const Array<StmtSRef>& loop_srefs) {
fused_loop =
Downcast<For>(SimplifyBindings(fused_loop, GetLoops(loop_srefs[0]), &opaque_block_reuse));
self->Replace(loop_srefs[0], fused_loop, opaque_block_reuse);
return self->stmt2ref.at(fused_loop.get());
StmtSRef result_sref = self->stmt2ref.at(fused_loop.get());
//check stage pipeline is still true after transformation
GetScopeRootAndCheckStagePipeline(self, result_sref);
return result_sref;
}

} // namespace tir
Expand Down

0 comments on commit a5a7f4f

Please sign in to comment.