Replace some uses of getSubtargetImpl with the cached version