Probing the stellar initial-final mass relation