diff --git a/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp b/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp index 744bdee218..faa7f850a7 100644 --- a/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp +++ b/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp @@ -6310,8 +6310,6 @@ spu_program spu_recompiler_base::analyse(const be_t* ls, u32 entry_point, s ra.value = ra.is_const() ? spu_ls_target(ra.value, op.si10 * 4) : 0; const u32 offs = ra.is_const() ? 0 : spu_ls_target(0, op.si10 * 4); const u32 abs_diff = calculate_absolute_ls_difference(offs, 0); - const u32 const_flags = u32{ra.is_const()} + u32{atomic16.ls.is_const()}; - const u32 const_lsa_flags = u32{ra.is_const()} + u32{_lsa.is_const()}; if ((_lsa.unequal_with_mask_indifference(ra, SPU_LS_MASK_128) && offs == 0) || (_lsa.compare_with_mask_indifference(ra, SPU_LS_MASK_1) && abs_diff >= 128u) || diff --git a/rpcs3/Emu/Cell/SPULLVMRecompiler.cpp b/rpcs3/Emu/Cell/SPULLVMRecompiler.cpp index dff6290ea9..73c7697134 100644 --- a/rpcs3/Emu/Cell/SPULLVMRecompiler.cpp +++ b/rpcs3/Emu/Cell/SPULLVMRecompiler.cpp @@ -1089,7 +1089,7 @@ class spu_llvm_recompiler : public spu_recompiler_base, public cpu_translator m_ir->SetInsertPoint(_body); } - void putllc16_pattern(const spu_program& prog, utils::address_range range) + void putllc16_pattern(const spu_program& /*prog*/, utils::address_range range) { // Prevent store elimination m_block->store_context_ctr[s_reg_mfc_eal]++; @@ -1231,7 +1231,6 @@ class spu_llvm_recompiler : public spu_recompiler_base, public cpu_translator return; } - const u64 rtime = _spu->rtime; rsx::reservation_lock rsx_lock(raddr, 128); // Touch memory @@ -1399,7 +1398,7 @@ class spu_llvm_recompiler : public spu_recompiler_base, public cpu_translator m_ir->SetInsertPoint(_final); } - void putllc0_pattern(const spu_program& prog, utils::address_range range) + void putllc0_pattern(const spu_program& /*prog*/, utils::address_range /*range*/) { // Prevent store elimination m_block->store_context_ctr[s_reg_mfc_eal]++;