Skip to content

Commit 2da0886

Browse files
[CINN]fix IfFusionPass condition (#70239)
1 parent 4945e55 commit 2da0886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/cinn/optim/if_fusion_pass.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ using ir::stmt::StmtRef;
2525

2626
void FuseIfStmtWithSameCondInBlock(BlockRef block) {
2727
const std::vector<StmtRef>& stmts = block->stmts();
28-
if (stmts.size() <= 2) return;
28+
if (stmts.size() < 2) return;
2929

3030
const auto& IsIfStmtWithSpecCond = [](const StmtRef& stmt, const Expr& cond) {
3131
if (!stmt.isa<IfThenElse>()) return false;

0 commit comments

Comments
 (0)