-
-
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
Intermittent test failure in math-effect test #45781
Comments
@aviatesk and I managed to squeeze this down to reproducible with just:
|
Looks like julia> eff = Base.infer_effects(sin, (Float32,))
(+c,+e,?n,+t,+s)
julia> Core.Compiler.is_foldable(eff)
true Fresh session: julia> sign(pi)
1.0
julia> eff = Base.infer_effects(sin, (Float32,))
(+c,+e,?n,?t,+s)
julia> Core.Compiler.is_foldable(eff)
false |
Drilling a bit into julia> promote_type(Irrational{:π}, Bool)
Float64
julia> Base.infer_effects(sin, (Float32,))
(+c,+e,?n,?t,+s) OTOH (in a fresh session again): julia> Base.promote_result(Irrational{:π}, Bool, Float64, Irrational{:π})
Float64
julia> promote_type(Irrational{:π}, Bool)
Float64
julia> Base.infer_effects(sin, (Float32,))
(+c,+e,?n,+t,+s) |
ffucci
pushed a commit
to ffucci/julia
that referenced
this issue
Aug 11, 2022
In a similar spirit to JuliaLang#40561, we can relax the recursion detection to guarantee `:terminates` effect and allow the effects analysis to not taint `:terminates` effect when there are no cycles in `MethodInstance`s in a call graph. fix JuliaLang#45781
pcjentsch
pushed a commit
to pcjentsch/julia
that referenced
this issue
Aug 18, 2022
In a similar spirit to JuliaLang#40561, we can relax the recursion detection to guarantee `:terminates` effect and allow the effects analysis to not taint `:terminates` effect when there are no cycles in `MethodInstance`s in a call graph. fix JuliaLang#45781
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Failure is test order dependent and reproducible with
Originally posted by @Keno in #45670 (comment)
The text was updated successfully, but these errors were encountered: