Skip to content

Commit

Permalink
update EA
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Jan 21, 2022
1 parent 48f3444 commit eccc077
Show file tree
Hide file tree
Showing 7 changed files with 693 additions and 422 deletions.
4 changes: 2 additions & 2 deletions base/compiler/ssair/EscapeAnalysis/EAUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,15 @@ function get_name_color(x::EscapeLattice, symbol::Bool = false)
name, color = (getname(EA.NoEscape), ""), :green
elseif EA.has_all_escape(x)
name, color = (getname(EA.AllEscape), "X"), :red
elseif EA.NoEscape() (EA.ignore_thrownescapes EA.ignore_aliasescapes)(x) EA.AllReturnEscape()
elseif EA.NoEscape() (EA.ignore_thrownescapes EA.ignore_aliasinfo)(x) EA.AllReturnEscape()
name = (getname(EA.ReturnEscape), "")
color = EA.has_thrown_escape(x) ? :yellow : :cyan
else
name = (nothing, "*")
color = EA.has_thrown_escape(x) ? :yellow : :bold
end
name = symbol ? last(name) : first(name)
if name !== nothing && !isa(x.AliasEscapes, Bool)
if name !== nothing && !isa(x.AliasInfo, Bool)
name = string(name, "")
end
return name, color
Expand Down
Loading

0 comments on commit eccc077

Please sign in to comment.