Skip to content

Instantly share code, notes, and snippets.

@jrevels
Created October 5, 2018 15:30
Show Gist options
  • Save jrevels/d7740244bfd07f70263f3ea9f6cefc46 to your computer and use it in GitHub Desktop.
Save jrevels/d7740244bfd07f70263f3ea9f6cefc46 to your computer and use it in GitHub Desktop.
diff --git a/llvm2.log b/llvm1.log
index e9e65c0..2544cf0 100644
--- a/llvm2.log
+++ b/llvm1.log
@@ -8,30 +8,32 @@ CodeInfo(
└─── goto #6 if not %6
5 ── invoke Base.getindex(()::Tuple, 1::Int64)::Union{}
└─── $(Expr(:unreachable))::Union{}
- 6 ── goto #7
- 7 ── goto #8
- 8 ── goto #9
+ 6 ── goto #8
+ 7 ── $(Expr(:unreachable))::Union{}
+ 8 ┄─ goto #9
9 ── goto #10
- 10 ─ %14 = (Base.arraysize)(x, 1)::Int64
- │ %15 = (Base.arraysize)(x, 2)::Int64
- │ %16 = $(Expr(:foreigncall, :(:jl_alloc_array_2d), Array{Float64,2}, svec(Any, Int64, Int64), :(:ccall), 3, Array{Float64,2}, :(%14), :(%15), :(%15), :(%14)))::Array{Float64,2}
- │ %17 = (Base.sle_int)(1, 1)::Bool
- └─── goto #12 if not %17
- 11 ─ %19 = (Base.sle_int)(1, 0)::Bool
- └─── goto #13
- 12 ─ nothing::Nothing
- 13 ┄ %22 = φ (#11 => %19, #12 => false)::Bool
- └─── goto #15 if not %22
- 14 ─ invoke Base.getindex(()::Tuple, 1::Int64)::Union{}
+ 10 ─ goto #11
+ 11 ─ %15 = (Base.arraysize)(x, 1)::Int64
+ │ %16 = (Base.arraysize)(x, 2)::Int64
+ │ %17 = $(Expr(:foreigncall, :(:jl_alloc_array_2d), Array{Float64,2}, svec(Any, Int64, Int64), :(:ccall), 3, Array{Float64,2}, :(%15), :(%16), :(%16), :(%15)))::Array{Float64,2}
+ │ %18 = (Base.sle_int)(1, 1)::Bool
+ └─── goto #13 if not %18
+ 12 ─ %20 = (Base.sle_int)(1, 0)::Bool
+ └─── goto #14
+ 13 ─ nothing::Nothing
+ 14 ┄ %23 = φ (#12 => %20, #13 => false)::Bool
+ └─── goto #16 if not %23
+ 15 ─ invoke Base.getindex(()::Tuple, 1::Int64)::Union{}
└─── $(Expr(:unreachable))::Union{}
- 15 ─ goto #16
- 16 ─ goto #17
- 17 ─ goto #18
- 18 ─ goto #19
- 19 ─ %30 = Base.add_sum::typeof(add_sum)
- │ %31 = invoke Base._accumulate!(%30::typeof(Base.add_sum), %16::Array{Float64,2}, _2::Array{Float64,2}, 2::Int64, Base.nothing::Nothing)::Array{Float64,2}
- └─── goto #20
+ 16 ─ goto #18
+ 17 ─ $(Expr(:unreachable))::Union{}
+ 18 ┄ goto #19
+ 19 ─ goto #20
20 ─ goto #21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment