diff --git a/include/tvm/relay/expr_functor.h b/include/tvm/relay/expr_functor.h index 7ae6a54391c3c..688ad8254fa85 100644 --- a/include/tvm/relay/expr_functor.h +++ b/include/tvm/relay/expr_functor.h @@ -33,7 +33,6 @@ #include #include -#include #include #include #include @@ -449,7 +448,7 @@ void ExpandDataflow(Expr expr, FCheckVisited fcheck_visited, FVisitLeaf fvisit_l std::deque stack; auto fpush_to_stack = [&fcheck_visited, &stack](const Expr& expr) { if (!fcheck_visited(expr)) { - stack.push_front(std::move(v_info(expr))); + stack.emplace_front(v_info(expr)); } }; @@ -487,7 +486,7 @@ void ExpandDataflow(Expr expr, FCheckVisited fcheck_visited, FVisitLeaf fvisit_l } else if (const TupleGetItemNode* op = expr.as()) { result.push_back(op->tuple); } - return std::move(result); + return result; }; ExpandDataflow(expr, fcheck_visited, fvisit_leaf, fexpand_expr); }