Skip to content

Commit 7a51aea

Browse files
committed
[X86] Silence -Wlogical-op-parentheses in X86CompressEVEX.cpp (NFC)
llvm-project/llvm/lib/Target/X86/X86CompressEVEX.cpp:233:15: error: '&&' within '||' [-Werror,-Wlogical-op-parentheses] if (!IsND && !IsMovberr || !isRedundantNewDataDest(MI, ST)) ~~~~~~^~~~~~~~~~~~~ ~~ llvm-project/llvm/lib/Target/X86/X86CompressEVEX.cpp:233:15: note: place parentheses around the '&&' expression to silence this warning if (!IsND && !IsMovberr || !isRedundantNewDataDest(MI, ST)) ^ ( ) 1 error generated.
1 parent fd3edd4 commit 7a51aea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86CompressEVEX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ static bool CompressEVEXImpl(MachineInstr &MI, const X86Subtarget &ST) {
230230
MI.getOpcode() == X86::MOVBE32rr || MI.getOpcode() == X86::MOVBE64rr;
231231
bool IsND = X86II::hasNewDataDest(TSFlags);
232232
if ((TSFlags & X86II::EVEX_B) || IsMovberr)
233-
if (!IsND && !IsMovberr || !isRedundantNewDataDest(MI, ST))
233+
if ((!IsND && !IsMovberr) || !isRedundantNewDataDest(MI, ST))
234234
return false;
235235

236236
ArrayRef<X86CompressEVEXTableEntry> Table = ArrayRef(X86CompressEVEXTable);

0 commit comments

Comments
 (0)