Skip to content

feat: portable #pragma omp simd for vectorizable C loops (#739) - #1333

Closed
godofecht wants to merge 8 commits into
mainfrom
fix-739-portable-simd-pragma-11619965655346489604
Closed

godofecht wants to merge 8 commits into
mainfrom
fix-739-portable-simd-pragma-11619965655346489604

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Summary

Publishes Completed Jules session 11619965655346489604 for issue #739.

Adds portable #pragma omp simd emission for vectorizable loops in the C backend, with accompanying tests.

Test plan

  • CI green
  • Review simd pragma emission on representative loops

Closes #739

google-labs-jules Bot and others added 8 commits October 3, 2026 13:04
This updates the C code generator to emit `#pragma omp simd` for stepped loops
with straight-line bodies when `_OPENMP` is defined, providing a portable
compiler-independent SIMD vectorization hint before falling back to
the clang or GCC specific `#pragma clang loop vectorize` or `#pragma GCC ivdep`.

The golden tests `for_vectorize_pragma` and `for_vectorize_pragma_skip`
were updated to reflect the new output.
Bootstrap C has been regenerated and verified.

Part of #739

Co-authored-by: godofecht <[email protected]>
@godofecht godofecht closed this Oct 4, 2026
@godofecht
godofecht deleted the fix-739-portable-simd-pragma-11619965655346489604 branch October 12, 2026 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Performance #727] Add portable SIMD-aware lowering for hot loops on the C backend

1 participant