Skip to content

Commit

Permalink
Fixed InsertStore for Buffer wo inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
a-sidorova committed May 17, 2023
1 parent f71b552 commit ec5920b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/common/snippets/src/lowered/pass/insert_load_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,19 @@ bool InsertLoadStore::run(LinearIR& linear_ir) {
for (auto expr_it = linear_ir.begin(); expr_it != linear_ir.end(); expr_it++) {
const auto expr = *expr_it;
const auto& node = expr->get_node();
if (ov::is_type<opset1::Parameter>(node) || ov::is_type<op::Buffer>(node)) {
if (ov::is_type<opset1::Parameter>(node)) {
modified |= insert_load(linear_ir, expr_it);
continue;
}

if (ov::is_type<opset1::Result>(node) || ov::is_type<op::Buffer>(node)) {
if (ov::is_type<opset1::Result>(node)) {
modified |= insert_store(linear_ir, expr_it);
continue;
}
if (auto buffer = ov::as_type_ptr<op::Buffer>(node)) {
modified |= insert_load(linear_ir, expr_it);
if (buffer->is_intermediate_memory())
modified |= insert_store(linear_ir, expr_it);
continue;
}
}

Expand Down

0 comments on commit ec5920b

Please sign in to comment.