The subtarget is cached on the MachineFunction. Access it directly.