Skip to content

Commit 1417d71

Browse files
committed
[AMDGPU] Update comments.
1 parent e75dde7 commit 1417d71

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16892,6 +16892,8 @@ SITargetLowering::lowerIdempotentRMWIntoFencedLoad(AtomicRMWInst *AI) const {
1689216892
}
1689316893

1689416894
bool SITargetLowering::hasAndNot(SDValue Op) const {
16895+
// Return false if the operation is divergent, as AND-NOT optimization
16896+
// requires uniform behavior across threads.
1689516897
if (Op->isDivergent())
1689616898
return false;
1689716899

llvm/lib/Target/AMDGPU/SIISelLowering.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -598,12 +598,6 @@ class SITargetLowering final : public AMDGPUTargetLowering {
598598

599599
MachineMemOperand::Flags
600600
getTargetMMOFlags(const Instruction &I) const override;
601-
602-
/// Return true if the target supports a bitwise and-not operation:
603-
/// X = ~A & B
604-
/// This function checks if the operation can be directly mapped to the
605-
/// target's native instructions, potentially simplifying select or other
606-
/// related instructions by using more efficient hardware-specific operations.
607601
bool hasAndNot(SDValue Op) const override;
608602
};
609603

0 commit comments

Comments
 (0)