Skip to content

Commit

Permalink
[CINN] Optimize the compare func of Div expressions (#71465)
Browse files Browse the repository at this point in the history
* add FLAGS_check_jit_instrction_shape

* add log

* add flag in runtime/flags

* fix

* tix typo

* refine compare_func

* delete useless code
  • Loading branch information
gongshaotian authored Mar 7, 2025
1 parent 85a81d9 commit c1747b7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions paddle/pir/src/dialect/shape/utils/dim_expr_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,9 @@ template <>
struct IsLhsBeforeRhsStruct<Div<DimExpr>, Div<DimExpr>> {
static bool Call(const Div<DimExpr>& lhs, const Div<DimExpr>& rhs) {
const auto& lhs_lhs = lhs->lhs;
const auto& lhs_rhs = lhs->rhs;
const auto& rhs_lhs = rhs->lhs;
const auto& rhs_rhs = rhs->rhs;

return IsLhsBeforeRhs(lhs_lhs, rhs_lhs) && IsLhsBeforeRhs(lhs_rhs, rhs_rhs);
return IsLhsBeforeRhs(lhs_lhs, rhs_lhs);
}
};

Expand Down

0 comments on commit c1747b7

Please sign in to comment.