Skip to content

Commit 2504693

Browse files
authored
[ARM][NFC] Remove redundant sub-expressions (#122911)
This PR removes redundant sub-expressions `Mnemonic != "vqmovnt"`, which is mentioned in https://pvs-studio.com/en/blog/posts/cpp/1188/.
1 parent 030d48b commit 2504693

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6663,9 +6663,9 @@ StringRef ARMAsmParser::splitMnemonic(StringRef Mnemonic, StringRef ExtraToken,
66636663
Mnemonic != "vshllt" && Mnemonic != "vrshrnt" && Mnemonic != "vshrnt" &&
66646664
Mnemonic != "vqrshrunt" && Mnemonic != "vqshrunt" &&
66656665
Mnemonic != "vqrshrnt" && Mnemonic != "vqshrnt" && Mnemonic != "vmullt" &&
6666-
Mnemonic != "vqmovnt" && Mnemonic != "vqmovunt" &&
6667-
Mnemonic != "vqmovnt" && Mnemonic != "vmovnt" && Mnemonic != "vqdmullt" &&
6668-
Mnemonic != "vpnot" && Mnemonic != "vcvtt" && Mnemonic != "vcvt") {
6666+
Mnemonic != "vqmovnt" && Mnemonic != "vqmovunt" && Mnemonic != "vmovnt" &&
6667+
Mnemonic != "vqdmullt" && Mnemonic != "vpnot" && Mnemonic != "vcvtt" &&
6668+
Mnemonic != "vcvt") {
66696669
unsigned VCC =
66706670
ARMVectorCondCodeFromString(Mnemonic.substr(Mnemonic.size() - 1));
66716671
if (VCC != ~0U) {

0 commit comments

Comments
 (0)