Skip to content

@noinline ignored #19418

@damiendr

Description

@damiendr

It looks like Julia 0.6 ignores @noinline in the following snippet:

@noinline bar() = 1
function foo()
    bar()
end
@code_typed(foo())

Julia Version 0.5.0-dev+2349
Commit cf93d6f* (2016-01-29 02:19 UTC):

1-element Array{Any,1}:
 :($(Expr(:lambda, Any[], Any[Any[],Any[],Any[],Any[]], :(begin  # In[1], line 3:
        return (Main.bar)()::Int64
    end::Int64))))

Julia Version 0.6.0-dev.1297
Commit 416f5f2* (2016-11-23 13:12 UTC):

CodeInfo(:(begin 
        return $(QuoteNode(1))
    end))=>Int64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions