Skip to content

Commit

Permalink
fixing bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jjsjann123 committed Dec 25, 2024
1 parent 738abb7 commit 4685f95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions csrc/preseg_passes/consecutive_cast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,14 @@ Expr* moveChainedCasts(Expr* expr, std::unordered_set<Expr*>& visited) {
expr->fusion(), {{expr->output(0), starting_anchor}});
} else {
Val* new_expr_val = replaceInputInCast(expr->output(0), starting_anchor);
Expr* expr = new_expr_val->definition();
expr = new_expr_val->definition();
}
} else {
// 1.4.b: This is the case where we cannot fold away the cast of
// lo_anchor; we'll just re-wire input to expr with lo_anchor
lo_anchor = replaceInputInCast(lo_anchor, starting_anchor);
Val* new_expr_val = replaceInputInCast(expr->output(0), lo_anchor);
Expr* expr = new_expr_val->definition();
expr = new_expr_val->definition();
}
return expr;
}
Expand Down

0 comments on commit 4685f95

Please sign in to comment.