Landing: e6a0d03831f2

Project / Subsystem

binutils / gas

Date

2026-09-13

Author

Max Filippov <jcmvbkbc@sourceware.org>

Commit

e6a0d03831f2bf93e31452f22a571df09aa68d56

Source

public_inbox

Perf win

Yes

Breaking

No

All attributes

project
binutils
subsystem
gas
patch_id
—
commit_hash
e6a0d03831f2bf93e31452f22a571df09aa68d56
source_type
public_inbox
headline
Optimize Xtensa assembler branch target checking
tldr
Xtensa assembler performance improved by optimizing branch target checks, reducing assembly time from 20 mins to 1 second.
author
Max Filippov <jcmvbkbc@sourceware.org>
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • performance
  • • assembler
  • • Xtensa
  • • optimization
discussion_id_link
—
bugzilla_pr
—
date
2026-09-13T00:00:00.000Z

Assembly time for gcc.c-torture/compile/limits-externalid on Xtensa has been drastically reduced from approximately 20 minutes to 1 second. This is achieved by optimizing the next_frag_is_branch_target function to avoid redundant checks and by modifying xtensa_fix_target_frags to process a range of frags only once.