Skip to content

Commit b415800

Browse files
committed
update
1 parent e6e543b commit b415800

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paddle/pir/src/dialect/shape/utils/dim_expr_util.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ struct IsListLhsBeforeListRhsStruct {
246246
if (lhs_operands->at(i) == rhs_operands->at(i)) continue;
247247
return IsLhsBeforeRhs(lhs_operands->at(i), rhs_operands->at(i));
248248
}
249-
return true;
249+
return false;
250250
}
251251
};
252252

@@ -340,7 +340,7 @@ struct SortOperands {
340340
true,
341341
common::errors::InvalidArgument("input op is empty, please check!"));
342342
for (std::size_t i = 0; i < operands->size() - 1; ++i) {
343-
if (!IsLhsBeforeRhs(operands->at(i), operands->at(i + 1))) {
343+
if (IsLhsBeforeRhs(operands->at(i + 1), operands->at(i))) {
344344
return false;
345345
}
346346
}

0 commit comments

Comments
 (0)