Skip to content

Commit

Permalink
Clear usless code (PaddlePaddle#1388)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurelius84 authored and jiahy0825 committed May 25, 2023
1 parent 6d0b491 commit 6dca946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cinn/optim/fold_cinn_call_arguments.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct FoldCINNCallArgumentsMutator : public ir::IRMutator<> {
if (call && call->is_cinn_call()) {
// remove the duplicate calls.
std::string key = utils::GetStreamCnt(Expr(call));
if (visited_call_.count(utils::GetStreamCnt(Expr(call)))) {
if (visited_call_.count(key)) {
it = node->stmts.erase(it);
continue;
}
Expand Down

0 comments on commit 6dca946

Please sign in to comment.