Skip to content

Commit 0849c9c

Browse files
skarczewigcbot
authored andcommitted
Minor refactor
Minor refactor
1 parent 4325624 commit 0849c9c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

IGC/Compiler/CISACodeGen/EmitVISAPass.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14882,15 +14882,15 @@ void EmitPass::emitAtomicRaw(llvm::GenIntrinsicInst *pInst, Value *dstAddr, Cons
1488214882
e_alignment uniformAlign = isA64 ? EALIGN_2GRF : EALIGN_GRF;
1488314883
// Re-align the pointer if it's not GRF aligned.
1488414884
pDstAddr = ReAlignUniformVariable(pDstAddr, uniformAlign);
14885-
if (atomic_op == EATOMIC_OR && OrWith0Atomic(pInst, 2)) {
14886-
// special case of atomic_load
14887-
emitScalarAtomicLoad(pInst, resource, uniformBaseVar, pDstAddr, nullptr /*u*/, nullptr /*v*/, nullptr /*r*/,
14888-
pSrc0, isA64, bitwidth, immOffsetVal, immScaleVal, addrSize);
14889-
} else {
14890-
emitScalarAtomics(pInst, resource, atomic_op, uniformBaseVar, pDstAddr, nullptr /*u*/, nullptr /*v*/,
14891-
nullptr /*r*/, pSrc0, isA64, bitwidth, immOffsetVal, immScaleVal, addrSize);
14892-
ResetVMask();
14893-
}
14885+
if (atomic_op == EATOMIC_OR && OrWith0Atomic(pInst, 2)) {
14886+
// special case of atomic_load
14887+
emitScalarAtomicLoad(pInst, resource, uniformBaseVar, pDstAddr, nullptr /*u*/, nullptr /*v*/, nullptr /*r*/,
14888+
pSrc0, isA64, bitwidth, immOffsetVal, immScaleVal, addrSize);
14889+
} else {
14890+
emitScalarAtomics(pInst, resource, atomic_op, uniformBaseVar, pDstAddr, nullptr /*u*/, nullptr /*v*/,
14891+
nullptr /*r*/, pSrc0, isA64, bitwidth, immOffsetVal, immScaleVal, addrSize);
14892+
ResetVMask();
14893+
}
1489414894
return;
1489514895
}
1489614896

0 commit comments

Comments
 (0)