We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4945e55 commit 2da0886Copy full SHA for 2da0886
paddle/cinn/optim/if_fusion_pass.cc
@@ -25,7 +25,7 @@ using ir::stmt::StmtRef;
25
26
void FuseIfStmtWithSameCondInBlock(BlockRef block) {
27
const std::vector<StmtRef>& stmts = block->stmts();
28
- if (stmts.size() <= 2) return;
+ if (stmts.size() < 2) return;
29
30
const auto& IsIfStmtWithSpecCond = [](const StmtRef& stmt, const Expr& cond) {
31
if (!stmt.isa<IfThenElse>()) return false;
0 commit comments