Landing: 8576d0b2134f
Project / Subsystem
gcc / openmp
Date
2026-08-07
Author
Paul-Antoine Arras
Commit
8576d0b2134f8ff0449e50813034db4c18a4b6ae
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- openmp
- patch_id
- —
- commit_hash
- 8576d0b2134f8ff0449e50813034db4c18a4b6ae
- source_type
- github
- headline
- openmp: Adjust calls to OMPT variants depending on loop-end call
- tldr
- Corrects redundant calls to OMPT worksharing functions when GOMP_loop_end is already present.
- author
- Paul-Antoine Arras
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • openmp
- • optimization
- • runtime
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-07T00:00:00.000Z
This commit refactors OpenMP loop expansion to avoid redundant calls to OMPT worksharing functions when the inscan modifier is used. The inscan modifier already implies a call to GOMP_loop_end (or its variants), making subsequent calls to *_worksharing_end functions unnecessary. The changes adjust the expansion logic to prevent these redundant calls, ensuring correct and efficient handling of OpenMP loops with the inscan modifier.