[PATCH] D122868: [PowerPC] Adjust `MaxAtomicSizeInBitsSupported` on PPC64

Kai Luo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 31 23:01:33 PDT 2022


lkail created this revision.
lkail added reviewers: jsji, brad, nemanjai, PowerPC.
Herald added subscribers: shchenz, kbarton, hiraditya.
Herald added a project: All.
lkail requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

AtomicExpandPass uses this variable to determine emitting libcalls or not. The default value is 1024 and if we don't specify it for PPC64 explicitly, AtomicExpandPass won't emit `__atomic_*` libcalls for those target unable to inline atomic ops and finally the backend emits `__sync_*` libcalls. Thanks @efriedma for pointing it out.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122868

Files:
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/test/CodeGen/PowerPC/atomics-i128.ll
  llvm/test/Transforms/AtomicExpand/PowerPC/cmpxchg.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122868.419624.patch
Type: text/x-patch
Size: 18585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220401/7ab48baa/attachment.bin>


More information about the llvm-commits mailing list