Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes - can self-compile with ORC! #74

Merged
merged 2 commits into from
Dec 30, 2024
Merged

fixes - can self-compile with ORC! #74

merged 2 commits into from
Dec 30, 2024

Conversation

arnetheduck
Copy link
Owner

These fixes bring ORC to a point where nlvm can compile itself - there's a lot of bloat in the ORC code however, the end result being a binary that's 15% slower for now.

ORC also breaks allocation elision, likely because the allocation functions have become too complex - this can perhaps be solved with some optimization pass reordering and/or selective early inlining, but it remains to be seen - first, excessive EH from range-checked pointer arithmetic must be addressed.

  • mark several C functions as nounwind to reduce EH bloat
  • better allocation / deallocation annotations
  • fix missing wasMoved calls

These fixes bring ORC to a point where `nlvm` can compile itself -
there's a lot of bloat in the ORC code however, the end result being a
binary that's 15% slower for now.

ORC also breaks allocation elision, likely because the allocation
functions have become too complex - this can perhaps be solved with some
optimization pass reordering and/or selective early inlining, but it
remains to be seen - first, excessive EH from range-checked pointer
arithmetic must be addressed.

* mark several C functions as `nounwind` to reduce EH bloat
* better allocation / deallocation annotations
* fix missing `wasMoved` calls
@arnetheduck arnetheduck enabled auto-merge (squash) December 30, 2024 13:44
@arnetheduck arnetheduck merged commit 89db076 into master Dec 30, 2024
2 checks passed
@arnetheduck arnetheduck deleted the fixes-20241230 branch December 30, 2024 14:39
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.

1 participant