[llvm] [AMDGPU] Enable atomic optimizer for divergent i64 and double values (PR #96934)

Vikram Hegde via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 12 05:08:21 PDT 2024


================
@@ -755,7 +775,7 @@ void AMDGPUAtomicOptimizerImpl::optimizeAtomic(Instruction &I,
         // of each active lane in the wavefront. This will be our new value
         // which we will provide to the atomic operation.
         Value *const LastLaneIdx = B.getInt32(ST->getWavefrontSize() - 1);
-        assert(TyBitWidth == 32);
+        assert(TyBitWidth == 32 || TyBitWidth == 64);
----------------
vikramRH wrote:

Right, this does not add any extra value. removed

https://github.com/llvm/llvm-project/pull/96934


More information about the llvm-commits mailing list