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

Recursion does not converge effects correctly #51090

Closed
Keno opened this issue Aug 28, 2023 · 0 comments
Closed

Recursion does not converge effects correctly #51090

Keno opened this issue Aug 28, 2023 · 0 comments
Assignees
Labels
bugfix This change fixes an existing bug compiler:effects effect analysis

Comments

@Keno
Copy link
Member

Keno commented Aug 28, 2023

julia> @noinline function bar(b)
           b == 0 && return
           r = foo(b - 1); Base.donotdelete(b)
           return r
       end
bar (generic function with 1 method)

julia> foo(b) = (return bar(b))
foo (generic function with 1 method)

julia> @code_typed foo(10)
CodeInfo(
1 ─     return nothing
) => Nothing

The donotdelete got deleted. It may not be deleted. For @vtjnash.

@Keno Keno added the compiler:effects effect analysis label Aug 28, 2023
@oscardssmith oscardssmith added the bugfix This change fixes an existing bug label Aug 28, 2023
@vtjnash vtjnash closed this as completed Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug compiler:effects effect analysis
Projects
None yet
Development

No branches or pull requests

3 participants