when i use the liveInterval anlaysis pass.
I have checked the follwing code:
enum {
/// The default distance between instructions as returned by distance().
/// This may vary as instructions are inserted and removed.
InstrDist = 4 * Slot_Count
};
Why? Do you see a lot of time spent in renumbering? Intuitively I wouldn’t expect it to be that common for regalloc and other passes to insert more than 3 new instructions between two instructions from earlier passes…
Shouldn’t be a big deal to increase it. Though we probably have to be a bit careful as SlotIndexes are only unsigned (aka 32bits) and I see no code even checking for overflows right now…