]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000: Remove duplicate expression [PR106907]
authorJeevitha Palanisamy <jeevitha@linux.ibm.com>
Tue, 6 Jun 2023 11:19:02 +0000 (06:19 -0500)
committerJeevitha Palanisamy <jeevitha@linux.ibm.com>
Wed, 7 Jun 2023 15:31:23 +0000 (10:31 -0500)
PR106907 has few warnings spotted from cppcheck. In that addressing duplicate
expression issue here. Here the same expression is used twice in logical
AND(&&) operation which result in same result so removing that.

2023-06-06  Jeevitha Palanisamy  <jeevitha@linux.ibm.com>

gcc/
PR target/106907
* config/rs6000/rs6000.cc (vec_const_128bit_to_bytes): Remove
duplicate expression.

(cherry picked from commit c4deccd44655c5d748dfed200a37f2b678c32fe8)

gcc/config/rs6000/rs6000.cc

index 6debf0f63ffece672645a4a26274af3846af834d..45702d86588ee677152158f02497521414b12639 100644 (file)
@@ -28762,7 +28762,6 @@ vec_const_128bit_to_bytes (rtx op,
 
   info->all_words_same
     = (info->words[0] == info->words[1]
-       && info->words[0] == info->words[1]
        && info->words[0] == info->words[2]
        && info->words[0] == info->words[3]);