Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
zrr1999 committed Apr 7, 2023
1 parent 78d8de0 commit dac0bad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cinn/ir/ir_schedule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,6 @@ Expr ReverseComputeInliner::ReplaceInlinedTensor(Expr* load) {
void ScheduleImpl::ReverseComputeInline(const Expr& schedule_block) {
Expr root = this->GetRootBlock(schedule_block);
Expr inlined_store = CheckReverseComputeInlineValidationAndGetStore(schedule_block, root);

CHECK(schedule_block.As<ir::ScheduleBlockRealize>());
auto compute_body = schedule_block.As<ir::ScheduleBlockRealize>()->schedule_block.As<ir::ScheduleBlock>()->body;

Expand All @@ -1434,7 +1433,7 @@ void ScheduleImpl::ReverseComputeInline(const Expr& schedule_block) {
// Create a plan that removes the block to be inlined
LeafBlockRemovalPlan remove_plan(schedule_block, &inliner.src_stmt, &inliner.tgt_stmt);
remove_plan(&root);
inliner(&root);
inliner(&inliner.src_stmt);
inliner(&root);
}

Expand Down

0 comments on commit dac0bad

Please sign in to comment.