[llvm] [AMDGPU] Remove dead code in SIISelLowering (NFC) (PR #108198)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 11 05:01:42 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-amdgpu
Author: Nicolas Miller (npmiller)
<details>
<summary>Changes</summary>
This return is dead code as the return just above will always be taken.
---
Full diff: https://github.com/llvm/llvm-project/pull/108198.diff
1 Files Affected:
- (modified) llvm/lib/Target/AMDGPU/SIISelLowering.cpp (-3)
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index 736f714ac1a77c..fb553314919096 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -16207,9 +16207,6 @@ SITargetLowering::shouldExpandAtomicRMWInIR(AtomicRMWInst *RMW) const {
return isAtomicRMWLegalXChgTy(RMW)
? TargetLowering::AtomicExpansionKind::None
: TargetLowering::AtomicExpansionKind::CmpXChg;
-
- // PCIe supports add and xchg for system atomics.
- return atomicSupportedIfLegalIntType(RMW);
}
case AtomicRMWInst::Add:
case AtomicRMWInst::And:
``````````
</details>
https://github.com/llvm/llvm-project/pull/108198
More information about the llvm-commits
mailing list