Even if it is married and same flight number, the upgrades are processed separately. So, you will be eligible for a CPU on each segment (or that's what has happened to me in this scenario, which was very often SAT-IAH-DFW). So, you're good either way if your experience is consistent with mine.