Landing: b5e6f5d2d435

Project / Subsystem

gcc / middle-end

Date

2026-07-24

Author

Kael Andrew Alonzo Franco

Commit

b5e6f5d2d435aba79ed8568f19da25378c716714

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
middle-end
patch_id
commit_hash
b5e6f5d2d435aba79ed8568f19da25378c716714
source_type
github
headline
Simplify atomic built-in handling.
tldr
Replaces INTEGER_CST + expand_normal with tree_to_uwhi for atomic operations.
author
Kael Andrew Alonzo Franco
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • optimization
  • atomic
discussion_id_link
bugzilla_pr
date
2026-07-24T00:00:00.000Z

GCC simplifies the handling of atomic operations by replacing the ‘INTEGER_CST + expand_normal’ pattern with a more efficient and readable approach using tree_fits_uwhi_p and tree_to_uwhi. This change targets the fold_builtin_atomic_always_lock_free function, improving code clarity and potentially reducing compiler overhead for atomic built-ins.