Landing: a767a6a5609e

Project / Subsystem

gcc / i386

Date

2026-07-22

Author

Odysseas Georgoudis

Commit

a767a6a5609e0d0850291e2a035a8c71e9b14074

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
i386
patch_id
—
commit_hash
a767a6a5609e0d0850291e2a035a8c71e9b14074
source_type
github
headline
Canonicalize PAVG builtins to IFN_AVG_CEIL for i386.
tldr
i386 PAVG builtins are now canonicalized to IFN_AVG_CEIL for better optimization.
author
Odysseas Georgoudis
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • i386
  • • optimization
  • • builtins
discussion_id_link
—
bugzilla_pr
—
date
2026-07-22T00:00:00.000Z

The i386 PAVG builtins, which compute an unsigned average rounded up but use signed vector types, are now canonicalized to IFN_AVG_CEIL. This change involves view-converting operands to unsigned types and simplifies masked and unmasked calls. The optimization is applied when operands are equal for modes without IFN_AVG_CEIL optabs, enabling more generic simplifications.