From 21a1072117beda326fac134fd49db873846a1341 Mon Sep 17 00:00:00 2001 From: Eladash Date: Sun, 26 Jul 2020 18:32:28 +0300 Subject: [PATCH] SPU LLVM: Minor cleanup after #8559 --- rpcs3/Emu/Cell/SPURecompiler.cpp | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/rpcs3/Emu/Cell/SPURecompiler.cpp b/rpcs3/Emu/Cell/SPURecompiler.cpp index 20fc412b19..02242b26d7 100644 --- a/rpcs3/Emu/Cell/SPURecompiler.cpp +++ b/rpcs3/Emu/Cell/SPURecompiler.cpp @@ -7295,17 +7295,7 @@ public: { v128 data = get_const_vector(ci, m_pos, 7000); - bool all_bytes_equiv = true; - - for (u32 i = 0; i < 16; i++) - { - if (data._u8[0] != data._u8[i]) - { - all_bytes_equiv = false; - break; - } - } - + const bool all_bytes_equiv = data == v128::from8p(data._u8[0]); if (all_bytes_equiv) { // See above @@ -7324,17 +7314,7 @@ public: { v128 data = get_const_vector(ci, m_pos, 7000); - bool all_bytes_equiv = true; - - for (u32 i = 0; i < 16; i++) - { - if (data._u8[0] != data._u8[i]) - { - all_bytes_equiv = false; - break; - } - } - + const bool all_bytes_equiv = data == v128::from8p(data._u8[0]); if (all_bytes_equiv) { // See above