public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-7426] rs6000: Remove duplicate expression [PR106907]
@ 2023-06-07 16:28 jeevitha
  0 siblings, 0 replies; only message in thread
From: jeevitha @ 2023-06-07 16:28 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:dda4745eb1c9b063c6004baef54aa4cec97edf3d

commit r13-7426-gdda4745eb1c9b063c6004baef54aa4cec97edf3d
Author: Jeevitha Palanisamy <jeevitha@linux.ibm.com>
Date:   Tue Jun 6 06:19:02 2023 -0500

    rs6000: Remove duplicate expression [PR106907]
    
    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)

Diff:
---
 gcc/config/rs6000/rs6000.cc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gcc/config/rs6000/rs6000.cc b/gcc/config/rs6000/rs6000.cc
index 6debf0f63ff..45702d86588 100644
--- a/gcc/config/rs6000/rs6000.cc
+++ b/gcc/config/rs6000/rs6000.cc
@@ -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]);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-07 16:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-07 16:28 [gcc r13-7426] rs6000: Remove duplicate expression [PR106907] jeevitha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).