diff --git a/src/script_opt/Expr.cc b/src/script_opt/Expr.cc index 20f39c640b..ec62756e86 100644 --- a/src/script_opt/Expr.cc +++ b/src/script_opt/Expr.cc @@ -350,7 +350,7 @@ ExprPtr Expr::ReduceToConditional(Reducer* c, StmtPtr& red_stmt) return Reduce(c, red_stmt); } - if ( ! op1->IsReduced(c) || ! op2->IsReduced(c) ) + if ( ! op1->IsReduced(c) || ! op2->IsSingleton(c) ) { auto red2_stmt = ReduceToSingletons(c); auto res = ReduceToConditional(c, red_stmt);