Las Vegas to Yosemite Valley without stops and not going through Death Valley is 8 hours. So if you leave at 8 am, and make one stop for lunch and no other stops at all, you'll get into the Valley around 5 pm. There is no reason to drive south to Fresno. If you want an overnight stop that is between Yosemite and San Francisco, choose a town on Hwy 120 or Hwy 140. But since you won't have time to have seen anything in Yosemite, stay there or near there.
But this route does not go through Death Valley. Since this is the Death Valley forum, I am guessing you want to visit this fabulous National Park. If you take the route through Death Valley with no other stops, an 8 am departure puts you in Yosemite Valley between 6 and 7 pm.
If you really really want to rush through this section, how about this for an idea: leave early and drive to Death Valley. Spend an extra hour in the morning seeing some of the beauty of this National Park. Then drive up Hwy 395 to Lee Vining. See Mono Lake and stay in this tiny town. The next morning, drive through the Yosemite high country and stop a few times to see the beauty. Then continue out Hwy 120 and don't even visit Yosemite Valley. Go directly to San Francisco. Or include Yosemite Valley and drive to San Francisco in the late afternoon.
Just don't go to Fresno. It's not on the way.
Are you stopping for two nights along Highway 1 from SF to San Diego? Or do you think you're doing that in one day? I can't tell.
3 October: L.A. - 5 nights, 6 days
LONG drive to Grand Canyon, Flagstaff - 1 night
Las Vegas - __ nights, 3 days
driving through Yosemite, stay in or near Yosemite - 1 night
San Francisco - __ nights, 4 days
Highway 1 drive - __ nights, __ days
San Diego - __ nights, 2 days