i've been looking into some of the proposed improvements for DI performance outlined here, but have run into an issue i don't quite understand how to handle. specifically, if i have two SILInstruction
s that are known to have the same parent, is there a way to determine their ordering without walking the underlying list of instructions in the block? i've sort of assumed this should be possible since when i look at SILGen output, there are increasing ids for the instruction values[1], but i haven't determined if/how that information can be used for this purpose.
not sure if this is the correct terminology, but the things like
%2
,%3
, etc ↩︎