Skip to content

Commit ccc52a8

Browse files
authored
[AMDGPU] Remove dead code in SIISelLowering (NFC) (#108198)
This return is dead code as the return just above will always be taken.
1 parent 35e27c0 commit ccc52a8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16207,9 +16207,6 @@ SITargetLowering::shouldExpandAtomicRMWInIR(AtomicRMWInst *RMW) const {
1620716207
return isAtomicRMWLegalXChgTy(RMW)
1620816208
? TargetLowering::AtomicExpansionKind::None
1620916209
: TargetLowering::AtomicExpansionKind::CmpXChg;
16210-
16211-
// PCIe supports add and xchg for system atomics.
16212-
return atomicSupportedIfLegalIntType(RMW);
1621316210
}
1621416211
case AtomicRMWInst::Add:
1621516212
case AtomicRMWInst::And:

0 commit comments

Comments
 (0)