[llvm] [PowerPC] enable AtomicExpandImpl::expandAtomicCmpXchg for powerpc (PR #142395)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 4 18:01:17 PDT 2025
================
@@ -1475,6 +1475,10 @@ PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM,
setMinimumJumpTableEntries(PPCMinimumJumpTableEntries);
setMinFunctionAlignment(Align(4));
+ if (Subtarget.hasPartwordAtomics())
+ setMinCmpXchgSizeInBits(8);
+ else
+ setMinCmpXchgSizeInBits(32);
----------------
arsenm wrote:
```suggestion
setMinCmpXchgSizeInBits(Subtarget.hasPartwordAtomics() ? 8 : 32);
```
https://github.com/llvm/llvm-project/pull/142395
More information about the llvm-commits
mailing list