[PATCH] D106234: [PowerPC] Fallback to base's implementation of shouldExpandAtomicCmpXchgInIR and shouldExpandAtomicCmpXchgInIR

Kai Luo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 18 05:28:37 PDT 2021


lkail created this revision.
lkail added reviewers: PowerPC, jsji, shchenz, qiucf.
Herald added subscribers: jfb, kbarton, hiraditya, nemanjai.
lkail requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.

If we can't decided `shouldExpandAtomicCmpXchgInIR` or `shouldExpandAtomicCmpXchgInIR` in PPC's implementation, resort to base's implementation.

This fixes internal build of OpenMP which uses atomic operations on float.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106234

Files:
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/test/CodeGen/PowerPC/atomic-float.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106234.359615.patch
Type: text/x-patch
Size: 4545 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210718/8181c3b2/attachment.bin>


More information about the llvm-commits mailing list