This patch isn't intended for review right now, instead for discussion in comparison with D74633.
This patch morphs the "VarMap" map of VarLoc -> ID numbers into a class that also indexes all variable ID numbers by their register / machine location. This speeds up various parts of LiveDebugValues that step over all variable locations in search of a particular machine location, at the expense of additional memory consumption.