-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Snippets] extract invariants pass #24044
[Snippets] extract invariants pass #24044
Conversation
11e4faf
to
166390a
Compare
d5594f2
to
4e018b8
Compare
src/common/snippets/src/lowered/pass/extract_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
945d406
to
253ba95
Compare
62fc07b
to
d949778
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First part of review is completed
My major comment (suggestion): need to split code into semantic blocks: the separate functions.
When you see the body of the function with 200 code lines, it's very difficult to review and maintain 😢
In the best scenario the developer can read the code as a book by chapters (functions) 😃
src/common/snippets/src/lowered/pass/extract_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/src/lowered/pass/extract_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/src/lowered/pass/extract_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/src/lowered/pass/extract_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/src/lowered/pass/extract_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/src/lowered/pass/extract_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/src/lowered/pass/extract_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/src/lowered/pass/extract_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/src/lowered/pass/extract_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/src/lowered/pass/extract_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/src/lowered/pass/extract_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/src/lowered/pass/extract_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/src/lowered/pass/extract_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/src/lowered/pass/extract_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/src/lowered/pass/extract_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/include/snippets/lowered/pass/extract_loop_invariants.hpp
Outdated
Show resolved
Hide resolved
ccbc9c7
to
015a5ae
Compare
src/common/snippets/include/snippets/lowered/pass/extract_loop_invariants.hpp
Outdated
Show resolved
Hide resolved
src/common/snippets/include/snippets/lowered/pass/extract_loop_invariants.hpp
Outdated
Show resolved
Hide resolved
src/common/snippets/src/lowered/pass/extract_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/tests/src/lowered/pass/extracte_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/tests/src/lowered/pass/extracte_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/tests/src/lowered/pass/extracte_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
src/common/snippets/tests/src/lowered/pass/extracte_loop_invariants.cpp
Outdated
Show resolved
Hide resolved
ac972d6
to
17b1f22
Compare
… position of load
17b1f22
to
e5fef48
Compare
Reverts #24044 Reverted due to failure in TF FE layer tests: RuntimeError: Exception from openvino\openvino\src\inference\src\cpp\core.cpp:107: Exception from openvino\openvino\src\inference\src\dev\plugin.cpp:53: Exception from openvino\openvino\src\common\snippets\src\lowered\pass\assign_registers.cpp:315: can't allocate registers for a snippet
### Details: - *extract invariants pass* ### Tickets: - *CVS-136160* ### Todo: - [x] Add LIR correctness check test
Reverts openvinotoolkit#24044 Reverted due to failure in TF FE layer tests: RuntimeError: Exception from openvino\openvino\src\inference\src\cpp\core.cpp:107: Exception from openvino\openvino\src\inference\src\dev\plugin.cpp:53: Exception from openvino\openvino\src\common\snippets\src\lowered\pass\assign_registers.cpp:315: can't allocate registers for a snippet
### Details: - *recreation for PR #24044 - *fix post commit fail(will be added in pre commit soon)* ### Tickets: - *CVS-136160*
Details:
Tickets:
Todo: