[PATCH] D134323: AtomicExpand: Avoid some operations if the atomic is overaligned

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 20 15:45:43 PDT 2022


arsenm created this revision.
arsenm added reviewers: reames, jyknight, jdoerfert, rampitec.
Herald added subscribers: kosarev, kerbowa, jrtc27, fedor.sergeev, hiraditya, jvesely.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

Let some of the pointer bithacking fold away if we know the LSB are 0.


https://reviews.llvm.org/D134323

Files:
  llvm/lib/CodeGen/AtomicExpandPass.cpp
  llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-i16.ll
  llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-i8.ll
  llvm/test/Transforms/AtomicExpand/SPARC/partword.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134323.461733.patch
Type: text/x-patch
Size: 54488 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220920/ec46a729/attachment.bin>


More information about the llvm-commits mailing list