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

Fewer anonymous funcs and despecialize inference #2131

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Fewer anonymous funcs and despecialize inference #2131

wants to merge 5 commits into from

Conversation

wsmoses
Copy link
Member

@wsmoses wsmoses commented Nov 28, 2024

No description provided.

Copy link
Contributor

github-actions bot commented Nov 28, 2024

Benchmark Results

main 083757b... main/083757b5b9470d...
basics/overhead 4.95 ± 0.01 ns 4.03 ± 0.01 ns 1.23
time_to_load 1.16 ± 0.005 s 1.12 ± 0.021 s 1.03

Benchmark Plots

A plot of the benchmark results have been uploaded as an artifact to the workflow run for this PR.
Go to "Actions"->"Benchmark a pull request"->[the most recent run]->"Artifacts" (at the bottom).

@wsmoses wsmoses changed the title Fewer anonymous funcs Fewer anonymous funcs and despecialize inference Nov 28, 2024

define i64 @f({} addrspace(10)* %obj) readnone alwaysinline {
%c = addrspacecast {} addrspace(10)* %obj to {} addrspace(11)*
%r = call {}* @julia.pointer_from_objref({} addrspace(11)* %c)
Copy link
Member

Choose a reason for hiding this comment

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

Huh? Doesn't this break code?

@@ -1,6 +1,6 @@
# For julia runtime function emission

function emit_allocobj!(
Base.@nospecializeinfer function emit_allocobj!(
Copy link
Member

Choose a reason for hiding this comment

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

Can we import Base: @nospecializeinfer?

Comment on lines -492 to +498
for lbb in blocks(initfn), linst in collect(instructions(lbb))
for lbb in blocks(initfn)
liter = LLVM.API.LLVMGetFirstInstruction(lbb)
while liter != C_NULL
Copy link
Member

Choose a reason for hiding this comment

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

Why not simply for linst in instructions(lbb)?

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.

2 participants