File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -16892,6 +16892,8 @@ SITargetLowering::lowerIdempotentRMWIntoFencedLoad(AtomicRMWInst *AI) const {
16892
16892
}
16893
16893
16894
16894
bool SITargetLowering::hasAndNot(SDValue Op) const {
16895
+ // Return false if the operation is divergent, as AND-NOT optimization
16896
+ // requires uniform behavior across threads.
16895
16897
if (Op->isDivergent())
16896
16898
return false;
16897
16899
Original file line number Diff line number Diff line change @@ -598,12 +598,6 @@ class SITargetLowering final : public AMDGPUTargetLowering {
598
598
599
599
MachineMemOperand::Flags
600
600
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.
607
601
bool hasAndNot (SDValue Op) const override ;
608
602
};
609
603
You can’t perform that action at this time.
0 commit comments