This patch refactors SlotIndex::getInstrDistance to
SlotIndex::getApproxInstrDistance to better describe the actual
functionality of this function. This patch also adds in some additional
comments better documenting the assumptions that this function makes to
increase clarity.
Based on discussion on the LLVM Discourse:
https://discourse.llvm.org/t/odd-behavior-in-slotindex-getinstrdistance/64934/5
This assumption is also not true after inserting one instruction. You have to insert InstrDist / Slot_Count instructions I believe until you reach the limit (currently 4). And also the 5th insertion would trigger a renumbering making this approximate again...