[PATCH] D110069: AArch64: use `CAS` instead of `LDX`/`STX` for more ops if available

Tim Northover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 20 06:27:53 PDT 2021


t.p.northover created this revision.
Herald added subscribers: hiraditya, kristof.beyls, mcrosier.
t.p.northover requested review of this revision.
Herald added a project: LLVM.

This covers 128-bit loads, and atomicrmw operations without a single native instruction. Using `CAS` saves a bit of code size and has a better chance of succeeding with high contention on some systems.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D110069

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/arm64-atomic-128.ll
  llvm/test/CodeGen/AArch64/GlobalISel/arm64-atomic.ll
  llvm/test/CodeGen/AArch64/arm64-atomic-128.ll
  llvm/test/CodeGen/AArch64/atomic-ops-lse.ll
  llvm/test/CodeGen/AArch64/atomicrmw-xchg-fp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110069.373571.patch
Type: text/x-patch
Size: 41191 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210920/a4585a7c/attachment.bin>


More information about the llvm-commits mailing list