aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeevitha Palanisamy <jeevitha@linux.ibm.com>2023-06-06 06:19:02 -0500
committerJeevitha Palanisamy <jeevitha@linux.ibm.com>2023-06-06 06:19:02 -0500
commitc4deccd44655c5d748dfed200a37f2b678c32fe8 (patch)
tree587ebd6f8c7f727cd7de6af15f9fdffb6bbd446c
parent6be5d852216d36f5b0024cd581c2508c168647a6 (diff)
downloadgcc-c4deccd44655c5d748dfed200a37f2b678c32fe8.zip
gcc-c4deccd44655c5d748dfed200a37f2b678c32fe8.tar.gz
gcc-c4deccd44655c5d748dfed200a37f2b678c32fe8.tar.bz2
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.
-rw-r--r--gcc/config/rs6000/rs6000.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/config/rs6000/rs6000.cc b/gcc/config/rs6000/rs6000.cc
index 42f49e4..d197c3f 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]);