[llvm] c9ca2fe - [AMDGPU] Fix gcc -Wparentheses warning. NFC (#70239)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 25 15:47:57 PDT 2023
Author: Craig Topper
Date: 2023-10-25T15:47:53-07:00
New Revision: c9ca2fe739b6924575c222d0a6e02e528d606f88
URL: https://github.com/llvm/llvm-project/commit/c9ca2fe739b6924575c222d0a6e02e528d606f88
DIFF: https://github.com/llvm/llvm-project/commit/c9ca2fe739b6924575c222d0a6e02e528d606f88.diff
LOG: [AMDGPU] Fix gcc -Wparentheses warning. NFC (#70239)
Added:
Modified:
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index ff5d0e27277267b..7d457edad0d5cdf 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -12786,10 +12786,10 @@ static unsigned addPermMasks(unsigned First, unsigned Second) {
unsigned FirstNoCs = First & ~0x0c0c0c0c;
unsigned SecondNoCs = Second & ~0x0c0c0c0c;
- assert(FirstCs & 0xFF | SecondCs & 0xFF);
- assert(FirstCs & 0xFF00 | SecondCs & 0xFF00);
- assert(FirstCs & 0xFF0000 | SecondCs & 0xFF0000);
- assert(FirstCs & 0xFF000000 | SecondCs & 0xFF000000);
+ assert((FirstCs & 0xFF) | (SecondCs & 0xFF));
+ assert((FirstCs & 0xFF00) | (SecondCs & 0xFF00));
+ assert((FirstCs & 0xFF0000) | (SecondCs & 0xFF0000));
+ assert((FirstCs & 0xFF000000) | (SecondCs & 0xFF000000));
return (FirstNoCs | SecondNoCs) | (FirstCs & SecondCs);
}
More information about the llvm-commits
mailing list