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

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

commit r14-1567-gc4deccd44655c5d748dfed200a37f2b678c32fe8
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.

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 42f49e4a56b..d197c3f3289 100644
--- a/gcc/config/rs6000/rs6000.cc
+++ b/gcc/config/rs6000/rs6000.cc
@@ -28784,7 +28784,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-06 11:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-06 11:22 [gcc r14-1567] 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).