Skip to content

Commit

Permalink
some SSAIR pass improvements: (JuliaLang#43221)
Browse files Browse the repository at this point in the history
- improve type stability around `perform_lifting!`
- avoid using mutable `RefValue`s
- add docstrings for `lift_comparison!` / `canonicalize_typeassert!`
- fix `@nospecialize` annotation for `simple_walk_constraint`
  • Loading branch information
aviatesk authored and LilithHafner committed Mar 8, 2022
1 parent 475c5b2 commit 99877fa
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 149 deletions.
2 changes: 1 addition & 1 deletion base/compiler/ssair/ir.jl
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ function insert_node!(compact::IncrementalCompact, before, inst::NewInstruction,
elseif isa(before, OldSSAValue)
pos = before.id
if pos < compact.idx
renamed = compact.ssa_rename[pos]
renamed = compact.ssa_rename[pos]::AnySSAValue
count_added_node!(compact, inst.stmt)
line = something(inst.line, compact.result[renamed.id][:line])
node = add!(compact.new_new_nodes, renamed.id, attach_after)
Expand Down
Loading

0 comments on commit 99877fa

Please sign in to comment.