Julia: [NewOptimizer] (Legacy) IR does not show line number information anymore

Created on 18 May 2018  路  3Comments  路  Source: JuliaLang/julia

   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.7.0-DEV.4839 (2018-04-10 06:39 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 000f243d5d* (38 days old master)
|__/                   |  x86_64-pc-linux-gnu

julia> @code_warntype sin(1)
Variables:
  x::Int64

Body:
  begin
      # meta: location float.jl float 266
      # meta: location float.jl Type 251
      # meta: location float.jl Type 57
      Core.SSAValue(4) = (Base.sitofp)(Float64, x::Int64)::Float64
      # meta: pop locations (3)
      Core.SSAValue(1) = $(Expr(:invoke, MethodInstance for sin(::Float64), :(Base.Math.sin), Core.SSAValue(4)))::Float64
      return Core.SSAValue(1)
  end::Float64
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.7.0-DEV.5127 (2018-05-18 07:05 UTC)
 _/ |\__'_|_|_|\__'_|  |  master/ecf24255ac* (fork: 4086 commits, 303 days)
|__/                   |  x86_64-pc-linux-gnu

julia> @code_warntype sin(1)
Variables:
  x::Int64

Body:
  begin
      (Base.sitofp)(Float64, x::Int64)::Float64
      $(Expr(:invoke, MethodInstance for sin(::Float64), :(Base.Math.sin), Core.SSAValue(1)))::Float64
      return Core.SSAValue(2)
  end::Float64
regression

Most helpful comment

There's new printing for the new IR, which needs to be hooked up.

All 3 comments

There's new printing for the new IR, which needs to be hooked up.

Even more annoying is that we're missing the printing of SSAValue assignments. I think we're just seeing the RHS.

This was closed, but the referenced PR didn't actually bring back most of the information we used to have access to.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

omus picture omus  路  3Comments

i-apellaniz picture i-apellaniz  路  3Comments

musm picture musm  路  3Comments

TotalVerb picture TotalVerb  路  3Comments

StefanKarpinski picture StefanKarpinski  路  3Comments