-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
A few inference/codegen optimizations #22425
Conversation
src/codegen.cpp
Outdated
JL_GC_POP(); | ||
return true; | ||
} | ||
else if (((jl_datatype_t*)sty)->name == jl_array_typename) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check if sty is a datatype first
f5b4ba8
to
1ecf678
Compare
Add a codegen test? |
1ecf678
to
56cc72d
Compare
56cc72d
to
55a2eb2
Compare
Would also be good to have tests for the sizeof tfunc. |
Yes, trying to add that... |
55a2eb2
to
53af93b
Compare
Rebased on top of #22455 (for |
test/inference.jl
Outdated
|
||
function test_const_return(f::ANY, t::ANY, val::ANY) | ||
linfo = get_linfo(f, t) | ||
# If converage is not enabled, make the check strict by requiring constant ABI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coverage
53af93b
to
3668fdb
Compare
* Infer `Core.sizeof` constant results * Inline `Core.sizeof` in codegen * Optimize `jl_string_str` Fix #22422
3668fdb
to
0f4c537
Compare
Core.sizeof
constant resultsCore.sizeof
in codegenjl_string_str
Fix #22422