Skip to content

Commit

Permalink
polish code
Browse files Browse the repository at this point in the history
  • Loading branch information
liuruyan committed Feb 25, 2025
1 parent 2d21e13 commit 89b368f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paddle/cinn/common/simplify_special_pattern.cc
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ std::optional<ir::IndexExpr> DivMulAddModDivCase(const ir::IndexExpr& lhs,
find = true;
continue;
}
if (CheckPattern(cand, pattern_swap, &map)) {
ir::IndexExpr simplied = map.at("f") / map.at("b");
if (CheckPattern(cand, pattern_swap, &map_swap)) {
ir::IndexExpr simplied = map_swap.at("f") / map_swap.at("b");
res = res.defined() ? res + simplied : simplied;
find = true;
continue;
Expand Down

0 comments on commit 89b368f

Please sign in to comment.