Landing: 82d9668ca695

Project / Subsystem

gcc / gcc/loongarch

Date

2026-05-18

Author

Xi Ruoyao

Commit

82d9668ca6950419b1b00c0c4f8c9a87b6071051

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/loongarch
patch_id
commit_hash
82d9668ca6950419b1b00c0c4f8c9a87b6071051
source_type
github
headline
LoongArch: Rename rbit to bitreverse for consistency.
tldr
The LoongArch-specific reverse-bits builtin is now named bitreverse instead of rbit to match standard optab names.
author
Xi Ruoyao
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • loongarch
  • builtin
  • code generation
  • rename
  • consistency
discussion_id_link
github:gcc-mirror/gcc#50481
bugzilla_pr
date
2026-05-18T00:00:00.000Z

The LoongArch backend now uses bitreverse instead of rbit for its reverse-bits builtin. This change aligns the backend with standard optab names and leverages the __builtin_bitreverse{8,16,32,64} builtins introduced in r17-523. The old rbit expanders are no longer needed, as their uses were removed in r17-567.