Landing: ea72e6be34c4

Project / Subsystem

gcc / libatomic

Date

2025-02-24

Author

Wilco Dijkstra

Commit

ea72e6be34c41ccf54aab44d17386a4fba74edcd

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
libatomic
patch_id
—
commit_hash
ea72e6be34c41ccf54aab44d17386a4fba74edcd
source_type
github
headline
libatomic: Use HWCAPs in AArch64 ifunc tests
tldr
Simplifies AArch64 atomic operation selection by using HWCAPs instead of low-level checks.
author
Wilco Dijkstra
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • libatomic
  • • aarch64
  • • optimization
  • • runtime
discussion_id_link
—
bugzilla_pr
—
date
2025-02-24T00:00:00.000Z

The libatomic library on AArch64 now uses hardware capability (HWCAP) flags to select the most efficient atomic operations (ifuncs). This replaces older, more complex checks like has_lse128() and has_rcpc3(), simplifying the code and speeding up runtime selection by avoiding expensive system register accesses.