diff --git a/src/plugins/intel_cpu/src/nodes/kernels/x64/simd_jit.hpp b/src/plugins/intel_cpu/src/nodes/kernels/x64/simd_jit.hpp index 00deb9e0af81f7..d4f99637bd9453 100644 --- a/src/plugins/intel_cpu/src/nodes/kernels/x64/simd_jit.hpp +++ b/src/plugins/intel_cpu/src/nodes/kernels/x64/simd_jit.hpp @@ -118,11 +118,10 @@ class SReg { class VReg { private: - SIMDJit* jit = nullptr; std::shared_ptr reg; public: - VReg(SIMDJit* jit, std::shared_ptr reg) : jit(jit), reg(reg) {} + VReg(std::shared_ptr reg) : reg(reg) {} VReg() = default; @@ -572,7 +571,7 @@ class SIMDJit : public jit_generator { } VReg get_vreg() { - return VReg(this, alloc_vreg(-1)); + return VReg(alloc_vreg(-1)); } std::vector get_vregs(size_t num_vregs) { @@ -582,20 +581,6 @@ class SIMDJit : public jit_generator { return ret; } -#if 0 - Xbyak::Xmm Vmm(int id) { - if (use_avx512) { - if (id >= 32) - throw std::runtime_error(std::string("try to use invalid zmm register: #") + std::to_string(id)); - return Xbyak::Zmm(id); - } else { - if (id >= 16) - throw std::runtime_error(std::string("try to use invalid ymm register: #") + std::to_string(id)); - return Xbyak::Ymm(id); - } - } -#endif - // simd_xxx helpers have meaning similar to x86 intrinsics // it's more well-known than raw instruction can it also can be // made cross-platform(avx2/avx512/neon/...) diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/act_sparsity_fusion.cpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/act_sparsity_fusion.cpp index 2fb6f358fe50f4..cc069b78d3901c 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/act_sparsity_fusion.cpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/act_sparsity_fusion.cpp @@ -201,12 +201,12 @@ ov::intel_cpu::ActivationSparsityFusion::ActivationSparsityFusion() { return false; } +#ifdef CPU_DEBUG_CAPS if (std::getenv("NO_SPARSE")) return false; + std::cout << __func__ << ":" << m.get_match_root() << std::endl; +#endif ov::replace_node(old_node, new_node); - - std::cout << m.get_match_root() << std::endl; - return false; };