[llvm] [AMDGPU] Fix scan of atomicFSub in AtomicOptimizer. (PR #66082)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 12 06:39:54 PDT 2023
================
@@ -754,14 +754,13 @@ void AMDGPUAtomicOptimizerImpl::optimizeAtomic(Instruction &I,
// If we have a divergent value in each lane, we need to combine the value
// using DPP.
if (ValDivergent) {
- // For atomic sub, perform scan with add operation and allow one lane to substract the reduced value later.
- AtomicRMWInst::BinOp ScanOp;
- if(Op == AtomicRMWInst::Sub ) {
+ // For atomic sub, perform scan with add operation and allow one lane to
+ // substract the reduced value later.
----------------
jayfoad wrote:
Typo "subtract"
https://github.com/llvm/llvm-project/pull/66082
More information about the llvm-commits
mailing list