Skip to content

Commit

Permalink
[Bug] Remove redundant AllocStmt when lowering FrontendWhileStmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jim19930609 committed Apr 27, 2022
1 parent 5bb28e2 commit 2292b71
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion taichi/transforms/lower_ast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ class LowerAST : public IRVisitor {
stmts->insert(
std::make_unique<WhileControlStmt>(new_while->mask, cond_stmt),
fctx.stmts.size());
stmt->insert_before_me(std::make_unique<AllocaStmt>(PrimitiveType::i32));
auto &&const_stmt =
std::make_unique<ConstStmt>(TypedConstant((int32)0xFFFFFFFF));
auto const_stmt_ptr = const_stmt.get();
Expand Down

0 comments on commit 2292b71

Please sign in to comment.