On Wed, Sep 14, 2016 at 11:09 AM, Ben Ward <[email protected]> wrote:
>
> Ahah! I completely forgot about warntype! Thanks!
>
> Out of interest, as I've only started to read llvm and native instructions 
> generated by my julia functions, is there a way to tell from the llvm if 
> there's type instability - say one forgets to do a code_warntype, are there 
> llvm instructions that when you see them, you should go "Doh man I need to do 
> @code_warntype as there's something not right here"?
>

Way too many items in the GC frame,

>  %1 = alloca [11 x %jl_value_t*], align 8
>  %.sub = getelementptr inbounds [11 x %jl_value_t*], [11 x %jl_value_t*]* %1, 
> i64 0, i64 0

Boxing/Allocation

>  %27 = call %jl_value_t* @jl_box_uint64(i64 zeroext %26)

Generic calls.

>  %28 = call %jl_value_t* @jl_apply_generic(%jl_value_t** %2, i32 3)

Reply via email to