From 2292b7111657d0f46665ee7ff290ed09c60576ea Mon Sep 17 00:00:00 2001 From: jim19930609 Date: Wed, 27 Apr 2022 14:23:30 +0800 Subject: [PATCH] [Bug] Remove redundant AllocStmt when lowering FrontendWhileStmt --- taichi/transforms/lower_ast.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/taichi/transforms/lower_ast.cpp b/taichi/transforms/lower_ast.cpp index 5562ec9bb9188..5141724e19deb 100644 --- a/taichi/transforms/lower_ast.cpp +++ b/taichi/transforms/lower_ast.cpp @@ -156,7 +156,6 @@ class LowerAST : public IRVisitor { stmts->insert( std::make_unique(new_while->mask, cond_stmt), fctx.stmts.size()); - stmt->insert_before_me(std::make_unique(PrimitiveType::i32)); auto &&const_stmt = std::make_unique(TypedConstant((int32)0xFFFFFFFF)); auto const_stmt_ptr = const_stmt.get();