In the women's quarterfinals, top-ranked Naomi Osaka lost 3-6, 6-2, 7-5 to Belinda Bencic, falling to the Swiss for the second time this season.
Bencic will now face two-time Madrid champion Simona Halep, the former No. 1 who defeated Ashleigh Barty 7-5, 7-5.
American Sloane Stephens got past Petra Martic in two sets and will face Kiki Bertens, who upset defending champion Petra Kvitova 6-2, 6-3 in a rematch of last year's final.