Skip to content

Commit

Permalink
[Snippets] Fixed expr enumeration forcing
Browse files Browse the repository at this point in the history
  • Loading branch information
a-sidorova committed Aug 9, 2024
1 parent 4824c91 commit 9b059c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/snippets/src/lowered/linear_ir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ double LinearIR::get_inserted_expr_exec_num(constExprIt insertion_pos) const {

// sync point to enumerate expressions
// 10 * eps - is to avoid meaningless result after (right_order + left_order) / 2 below
if ((1 - left_order/right_order) <= 10 * std::numeric_limits<double>::epsilon()) {
if (std::abs(1 - left_order/right_order) <= 10 * std::numeric_limits<double>::epsilon()) {
enumerate_expressions();
left_order = left_pos->get()->get_exec_num();
right_order = right_pos->get()->get_exec_num();
Expand Down

0 comments on commit 9b059c8

Please sign in to comment.