Skip to content

Commit 5423d96

Browse files
committed
review comment
1 parent e9a981c commit 5423d96

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

llvm/lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -886,12 +886,7 @@ void AMDGPUAtomicOptimizerImpl::optimizeAtomic(Instruction &I,
886886
// lane) to all other lanes in the wavefront. We use an intrinsic for this,
887887
// but have to handle 64-bit broadcasts with two calls to this intrinsic.
888888
Value *BroadcastI = nullptr;
889-
890-
if (TyBitWidth == 32 || TyBitWidth == 64) {
891-
BroadcastI = B.CreateIntrinsic(Ty, Intrinsic::amdgcn_readfirstlane, PHI);
892-
} else {
893-
llvm_unreachable("Unhandled atomic bit width");
894-
}
889+
BroadcastI = B.CreateIntrinsic(Ty, Intrinsic::amdgcn_readfirstlane, PHI);
895890

896891
// Now that we have the result of our single atomic operation, we need to
897892
// get our individual lane's slice into the result. We use the lane offset

0 commit comments

Comments
 (0)