Remove uses of getSubtargetImpl from ResourcePriorityQueue and