[PATCH] D119308: [AMDGPU] [NFC] Fix incorrect use of bitwise operator.

Sameer Sahasrabuddhe via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 8 19:13:48 PST 2022


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc6a6b57902b3: [AMDGPU] [NFC] Fix incorrect use of bitwise operator. (authored by sameerds).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119308/new/

https://reviews.llvm.org/D119308

Files:
  llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp


Index: llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
+++ llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
@@ -397,7 +397,10 @@
       }
     }
 
-    NeedsQueuePtr |= checkForQueuePtr(A);
+    if (!NeedsQueuePtr) {
+      NeedsQueuePtr = checkForQueuePtr(A);
+    }
+
     if (NeedsQueuePtr) {
       removeAssumedBits(QUEUE_PTR);
     }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119308.407032.patch
Type: text/x-patch
Size: 447 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220209/ee21040c/attachment.bin>


More information about the llvm-commits mailing list