Skip to content

Commit

Permalink
Vladislav comments apply 2
Browse files Browse the repository at this point in the history
  • Loading branch information
chenhu-wang committed Jun 12, 2024
1 parent 87cb1e8 commit 35195e7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 10 additions & 6 deletions src/common/snippets/include/snippets/LIR_pass_dumper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,18 @@ class LIRPassDump {
std::string xml_path = pathAndName + std::to_string(num) + '_' + pass_name + "_control_flow" + postfix +".xml";
lowered::pass::SerializeControlFlow SerializeLIR(xml_path);
SerializeLIR.run(linear_ir);
num++;
}
if (debug_config.dumpLIR.format.filter[DebugCapsConfig::LIRFormatFilter::dataFlow]) {
std::string xml_path = pathAndName + std::to_string(num) + '_' + pass_name + "_data_flow" + postfix +".xml";
lowered::pass::SerializeDataFlow SerializeLIR(xml_path);
SerializeLIR.run(linear_ir);
num++;
try {
if (debug_config.dumpLIR.format.filter[DebugCapsConfig::LIRFormatFilter::dataFlow]) {
std::string xml_path = pathAndName + std::to_string(num) + '_' + pass_name + "_data_flow" + postfix +".xml";
lowered::pass::SerializeDataFlow SerializeLIR(xml_path);
SerializeLIR.run(linear_ir);
}
}
catch (const std::exception& exp) {
printf("[WARNING] Dump LIR on pass %s failed. Data flow can't be dumped on LIR after InsertSpecificIteration was applied.", pass_name.c_str());
}
num++;
}

lowered::LinearIR& linear_ir;
Expand Down
3 changes: 0 additions & 3 deletions src/common/snippets/include/snippets/lowered/linear_ir.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
#include "snippets/lowered/expression.hpp"
#include "snippets/target_machine.hpp"
#include "snippets/shape_inference/shape_inference.hpp"

#ifdef SNIPPETS_DEBUG_CAPS
#include "snippets/debug_caps.hpp"
#endif

namespace ov {
namespace snippets {
Expand Down

0 comments on commit 35195e7

Please sign in to comment.