Skip to content

Optimize slice literal codegen on LLVM 21#15803

Merged
straight-shoota merged 2 commits intocrystal-lang:masterfrom
HertzDevil:perf/const-data-array
May 28, 2025
Merged

Optimize slice literal codegen on LLVM 21#15803
straight-shoota merged 2 commits intocrystal-lang:masterfrom
HertzDevil:perf/const-data-array

Conversation

@HertzDevil
Copy link
Contributor

See #2886 (comment).

Once again, this is something we could backport to earlier LLVM versions, but then LLVM 18 to 20 would remain unoptimized. Or do we re-enable llvm_ext.cc for those releases as well...?

Copy link
Member

@straight-shoota straight-shoota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit confusing with all the reordering of code to figure out what was actually added.
Might I ask for two separate commits next time, one for the refactor, the other adding the new stuff? 🙇

I don't think it's worth it to resurrect llvm_ext. Let's just make sure to update our builds to use LLVM 21.

@straight-shoota straight-shoota added this to the 1.17.0 milestone May 26, 2025
@straight-shoota straight-shoota merged commit 730db20 into crystal-lang:master May 28, 2025
43 checks passed
@HertzDevil HertzDevil deleted the perf/const-data-array branch June 3, 2025 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants