Commit 5d068357 by Christian Sarofeen Committed by Lianmin Zheng

Partition fix with rfactor, simplify and likely predicates. (#3444)

parent eb056bd4
......@@ -735,7 +735,7 @@ Array<Tensor> Schedule::rfactor(const Tensor& tensor,
const Reduce* reduce = compute_op->body[idx].as<Reduce>();
CHECK(reduce) << "Can only rfactor non-inline reductions";
predicates.push_back(reduce->condition);
Expr predicate = arith::ComputeReduce<ir::And>(predicates, Expr());
Expr predicate = likely(simplify(arith::ComputeReduce<ir::And>(predicates, Expr())));
std::unordered_map<const Variable*, Expr> vsub;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment