← Back to Pull requests

[Snippets][CPU][RV64] Fix dynamic memory emitter offsets #38583

Open
aobolensk opened this pull request with 43 lines diff across 9 files
View on GitHub
aobolensk aobolensk commented on Oct 03, 2026 20:42 UTC
Author

Details:


Fix FP GPR pool usage and enable tests SoftmaxSum snippets tests

Tickets:


- N/A

AI Assistance:


- AI assistance used: yes
- Implementation is assisted and after that manually tested and reviewed

Diff: 43 lines (+27 / -16) across 9 files Reviewer: v-Golubev Review duration: 14364m
All Vouch review confidence checks passed
Residual risk 0.05 = Change Risk (0.37) × (1 − Review Confidence (0.87)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 43 lines diff across 9 files
0.37
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.82 · 5 substantive comment(s)
0.82
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
86%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.226
Real PR Conversation Timeline
11 items
aobolensk aobolensk commented on Oct 04, 2026 09:27 UTC
Author

@v-Golubev please take a look

allnes allnes commented on Oct 05, 2026 18:35 UTC
Contributor

build_jenkins

v-Golubev v-Golubev commented on code on Oct 08, 2026 09:32 UTC
Code Review
src/plugins/intel_cpu/src/emitters/snippets/riscv64/jit_memory_emitters.hpp:1
@@ -29,7 +29,8 @@ class jit_memory_emitter : public jit_emitter {
     void emit_code_impl(const std::vector<size_t>& in_idxs,
                         const std::vector<size_t>& out_idxs,
                         const std::vector<size_t>& pool_vec_idxs,
-                        const std::vector<size_t>& pool_gpr_idxs) const override;
+                        const std::vector<size_t>& pool_gpr_idxs,
+                        const std::vector<size_t>& pool_fp_gpr_idxs) const override;

Shouldn't we force all the risc-v emitters override emit_code_impl overload with 5 parameters? The current architecture looks so risky: we have 2 overloads, and only one of them is 1) risc-v specific and 2) should be overridden

I suggest marking 4 parameters overload in jit_emitter with final and correct all the inherited classes which now overrides this overload

v-Golubev v-Golubev commented on Oct 12, 2026 09:18 UTC
Contributor

build_jenkins

aobolensk aobolensk commented on code on Oct 12, 2026 18:35 UTC
Code Review
src/plugins/intel_cpu/src/emitters/snippets/riscv64/jit_memory_emitters.hpp:1
@@ -29,7 +29,8 @@ class jit_memory_emitter : public jit_emitter {
     void emit_code_impl(const std::vector<size_t>& in_idxs,
                         const std::vector<size_t>& out_idxs,
                         const std::vector<size_t>& pool_vec_idxs,
-                        const std::vector<size_t>& pool_gpr_idxs) const override;
+                        const std::vector<size_t>& pool_gpr_idxs,
+                        const std::vector<size_t>& pool_fp_gpr_idxs) const override;

Done, I think it is a good idea

v-Golubev v-Golubev commented on Oct 13, 2026 07:10 UTC
Contributor

build_jenkins

v-Golubev v-Golubev commented on code on Oct 13, 2026 08:08 UTC
Code Review
src/plugins/intel_cpu/tests/functional/shared_tests_instances/skip_tests_config.cpp:1
@@ -489,6 +489,7 @@ const std::vector<std::regex>& disabled_test_patterns() {
             std::regex(R"(.*smoke_Snippets_MHA(INT8|Quant|FQ).*)"),
             std::regex(R"(.*smoke_Snippets_MLP.*)"),
             std::regex(R"(.*smoke_Snippets_GatedMLP.*)"),
+            std::regex(R"(.*smoke_Snippets_FQDecomposition.*Swish.*)"),

Why do we need this skip?

aobolensk aobolensk commented on code on Oct 13, 2026 17:00 UTC
Code Review
src/plugins/intel_cpu/tests/functional/shared_tests_instances/skip_tests_config.cpp:1
@@ -489,6 +489,7 @@ const std::vector<std::regex>& disabled_test_patterns() {
             std::regex(R"(.*smoke_Snippets_MHA(INT8|Quant|FQ).*)"),
             std::regex(R"(.*smoke_Snippets_MLP.*)"),
             std::regex(R"(.*smoke_Snippets_GatedMLP.*)"),
+            std::regex(R"(.*smoke_Snippets_FQDecomposition.*Swish.*)"),

I think it was branch update artifact, removed

v-Golubev v-Golubev approved these changes on Oct 13, 2026 17:11 UTC
Approved Reviewer

Approved these changes.

v-Golubev v-Golubev commented on Oct 13, 2026 17:12 UTC
Contributor

build_jenkins

Reviewers
Assignees
aobolensk aobolensk
Labels
risk: low confidence: 86.8% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 37.4% (MEDIUM) · Higher = larger blast radius
37.4%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 86.8% · Lower = rushed or shallow review
86.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 4.9% · Safe to merge
4.9%