Skip to content

Commit d31ba7c

Browse files
authored
some SSAIR pass improvements: (#43221)
- 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`
1 parent 3103102 commit d31ba7c

File tree

3 files changed

+189
-149
lines changed

3 files changed

+189
-149
lines changed

base/compiler/ssair/ir.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ function insert_node!(compact::IncrementalCompact, before, inst::NewInstruction,
719719
elseif isa(before, OldSSAValue)
720720
pos = before.id
721721
if pos < compact.idx
722-
renamed = compact.ssa_rename[pos]
722+
renamed = compact.ssa_rename[pos]::AnySSAValue
723723
count_added_node!(compact, inst.stmt)
724724
line = something(inst.line, compact.result[renamed.id][:line])
725725
node = add!(compact.new_new_nodes, renamed.id, attach_after)

0 commit comments

Comments
 (0)