Skip to content

Recursion does not converge effects correctly #51090

Closed
@Keno

Description

@Keno
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.

Metadata

Metadata

Assignees

Labels

bugfixThis change fixes an existing bugcompiler:effectseffect analysis

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions