-
-
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
backport fix for Const propagation of uninitialized structs to v1.1
.
#31418
Comments
As-is, we are still unable to use julia Would it be possible to back-port all of the commit 52bafeb? If not, is there an easy way to fix this problem for backport? |
I don't think it's very hard. It should literally just be about adding that |
Cool, good to hear. So for diff --git a/base/compiler/abstractinterpretation.jl b/base/compiler/abstractinterpretation.jl
index b01ad3a271..e493b4a1b9 100644
--- a/base/compiler/abstractinterpretation.jl
+++ b/base/compiler/abstractinterpretation.jl
@@ -910,7 +910,7 @@ function abstract_eval(@nospecialize(e), vtypes::VarTable, sv::InferenceState)
isconst = false
end
end
- if isconst
+ if isconst && fieldcount(t) == length(e.args) - 1
t = Const(ccall(:jl_new_structv, Any, (Any, Ptr{Cvoid}, UInt32), t, args, length(args)))
end
end |
yes, something like that. If that works and solves your issue, submit it as a PR :) |
K, i'll look into it. Thanks for the support, Keno. :) |
Fixes bug introduced in `v1.1.0` causing some LLVM optimizations to run for hours. Fixes JuliaLang#31418
Thanks Keno, that did indeed fix our issue. I've opened a PR directly against the |
Fixes bug introduced in `v1.1.0` causing some LLVM optimizations to run for hours. Fixes #31418
This has been addressed in #31699. Closing. |
Opening an issue about this so we don't forget.
Today we noticed our code incorrectly const-propagating an unitialized tuple on
julia 1.1
, which it wasn't doing onjulia 1.0
.This is fixed on
master
by the following lines, introduced in 52bafeb:julia/base/compiler/abstractinterpretation.jl
Lines 931 to 937 in f611b46
We discussed backporting this fix to a patch release for
v1.1
. Does that still seem doable? 😊Would we backport just those lines, or the whole commit 52bafeb?Thanks! :)
The text was updated successfully, but these errors were encountered: