Landing: 0eea1e39af14
Project / Subsystem
gcc / pru
Date
2026-09-18
Author
Yongqiang Tian
Commit
0eea1e39af146d98d8bce3d93ede34ea13196899
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- pru
- patch_id
- —
- commit_hash
- 0eea1e39af146d98d8bce3d93ede34ea13196899
- source_type
- github
- headline
- Pru: Ignore debug instructions when padding repeat loops
- tldr
- Fixes an issue where debug instructions caused extra NOPs in PRU repeat loops.
- author
- Yongqiang Tian
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • pru
- • compiler
- • optimization
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-18T00:00:00.000Z
The pru_insert_loop_label_last function in the PRU backend incorrectly counted debug instructions as opcodes when calculating padding for repeat loops. This led to an extra NOP instruction being inserted. This change modifies the function to ignore debug instructions, ensuring correct padding and preventing unnecessary instructions. A new regression test was added to verify the fix.