Landing: 18d08c0e6115

Project / Subsystem

gcc / match.pd

Date

2026-05-16

Author

Jakub Jelinek

Commit

18d08c0e6115e6c34eaed73f242ccf210a455240

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
match.pd
patch_id
commit_hash
18d08c0e6115e6c34eaed73f242ccf210a455240
source_type
github
headline
match.pd: Enable bswap optimizations for bitreverse builtins.
tldr
Extends existing bswap optimizations in match.pd to also cover bitreverse builtins.
author
Jakub Jelinek
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • optimization
  • bitreverse
  • bswap
discussion_id_link
bugzilla_pr
date
2026-05-16T00:00:00.000Z

This commit expands the pattern matching rules to apply bswap optimizations to bitreverse builtins as well. This change enables the compiler to perform a wider range of optimizations on code using bit reversal operations, potentially improving performance on platforms where bit reversal can be implemented efficiently.