The bottom half of the draw gets 2 days rest between QF and SF (https://tickets.rolandgarros.com/en/schedule). So I think even if Fed ends up winning the QF taking 3 hours let's say, he should be fine physically for the SF as long as he doesn't injure himself.