@@ -183,7 +183,7 @@ function find_def_for_use(
183
183
end
184
184
185
185
function collect_leaves (compact:: IncrementalCompact , @nospecialize (val), @nospecialize (typeconstraint), 𝕃ₒ:: AbstractLattice ,
186
- predecessors = ((@nospecialize (def), compact:: IncrementalCompact ) -> isa (def, PhiNode) ? def. values : nothing ))
186
+ predecessors:: Pre = ((@nospecialize (def), compact:: IncrementalCompact ) -> isa (def, PhiNode) ? def. values : nothing )) where {Pre}
187
187
if isa (val, Union{OldSSAValue, SSAValue})
188
188
val, typeconstraint = simple_walk_constraint (compact, val, typeconstraint)
189
189
end
@@ -271,7 +271,7 @@ Starting at `val` walk use-def chains to get all the leaves feeding into this `v
271
271
`predecessors(def, compact)` is a callback which should return the set of possible
272
272
predecessors for a "phi-like" node (PhiNode or Core.ifelse) or `nothing` otherwise.
273
273
"""
274
- function walk_to_defs (compact:: IncrementalCompact , @nospecialize (defssa), @nospecialize (typeconstraint), predecessors, 𝕃ₒ:: AbstractLattice )
274
+ function walk_to_defs (compact:: IncrementalCompact , @nospecialize (defssa), @nospecialize (typeconstraint), predecessors:: Pre , 𝕃ₒ:: AbstractLattice ) where {Pre}
275
275
visited_philikes = AnySSAValue[]
276
276
isa (defssa, AnySSAValue) || return Any[defssa], visited_philikes
277
277
def = compact[defssa][:stmt ]
0 commit comments