Landing: cf64f1ae2ca3
Project / Subsystem
binutils / binutils/gas
Date
2026-07-24
Author
Jan Beulich <jbeulich@sourceware.org>
Commit
cf64f1ae2ca36d81a90e49066004260f9cda0cb7
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- binutils/gas
- patch_id
- —
- commit_hash
- cf64f1ae2ca36d81a90e49066004260f9cda0cb7
- source_type
- public_inbox
- headline
- x86: Simplify base opcode setting in instruction optimization
- tldr
- Streamlines base opcode determination in the x86 assembler's instruction optimization routine.
- author
- Jan Beulich <jbeulich@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • x86
- • assembly
- • optimization
- • refactor
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-24T00:00:00.000Z
The x86 assembler’s optimize_encoding function now uses a simplified approach for setting the base opcode in a specific optimization case. This change reflects that the W property, relevant to operand size, is evaluated later in the process, allowing the base opcode to be directly set from the instruction template.