Skip to content

Commit

Permalink
add some @inline annotations to fix perf regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Jan 20, 2022
1 parent 6a63303 commit 9847f34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/EscapeAnalysis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -652,11 +652,11 @@ function propagate_changes!(estate::EscapeState, changes::Changes)
return anychanged
end

propagate_escape_change!(estate::EscapeState, change::EscapeChange) =
@inline propagate_escape_change!(estate::EscapeState, change::EscapeChange) =
propagate_escape_change!(, estate, change)

# allows this to work as lattice join as well as lattice meet
function propagate_escape_change!(@nospecialize(op),
@inline function propagate_escape_change!(@nospecialize(op),
estate::EscapeState, change::EscapeChange)
xidx, info = change
anychanged = _propagate_escape_change!(op, estate, xidx, info)
Expand All @@ -669,7 +669,7 @@ function propagate_escape_change!(@nospecialize(op),
return anychanged
end

function _propagate_escape_change!(@nospecialize(op),
@inline function _propagate_escape_change!(@nospecialize(op),
estate::EscapeState, xidx::Int, info::EscapeLattice)
old = estate.escapes[xidx]
new = op(old, info)
Expand All @@ -680,7 +680,7 @@ function _propagate_escape_change!(@nospecialize(op),
return false
end

function propagate_alias_change!(estate::EscapeState, change::AliasChange)
@inline function propagate_alias_change!(estate::EscapeState, change::AliasChange)
xidx, yidx = change
xroot = find_root!(estate.aliasset, xidx)
yroot = find_root!(estate.aliasset, yidx)
Expand Down

0 comments on commit 9847f34

Please sign in to comment.