[llvm] c6a6b57 - [AMDGPU] [NFC] Fix incorrect use of bitwise operator.
Sameer Sahasrabuddhe via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 8 19:13:48 PST 2022
Author: Sameer Sahasrabuddhe
Date: 2022-02-08T22:12:54-05:00
New Revision: c6a6b57902b3ed598a4d9aaa3c4cc21497b09269
URL: https://github.com/llvm/llvm-project/commit/c6a6b57902b3ed598a4d9aaa3c4cc21497b09269
DIFF: https://github.com/llvm/llvm-project/commit/c6a6b57902b3ed598a4d9aaa3c4cc21497b09269.diff
LOG: [AMDGPU] [NFC] Fix incorrect use of bitwise operator.
Differential Revision: https://reviews.llvm.org/D119308
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
index ff8b9537c45ce..bd913b88d759b 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
@@ -397,7 +397,10 @@ struct AAAMDAttributesFunction : public AAAMDAttributes {
}
}
- NeedsQueuePtr |= checkForQueuePtr(A);
+ if (!NeedsQueuePtr) {
+ NeedsQueuePtr = checkForQueuePtr(A);
+ }
+
if (NeedsQueuePtr) {
removeAssumedBits(QUEUE_PTR);
}
More information about the llvm-commits
mailing list