Olivier was Leigh 's second husband . The first was Leigh Holman , and Miss Leigh was still legally married to him when she came to the US to accompany Laurence Olivier who came to Hollywood to star in David O. Selznick 's production of `` Rebecca '' directed by Alfred Hitchcock . Leigh hoped to co-star with Olivier and made a screen test for Rebecca , which was to be directed by Alfred Hitchcock with Olivier in the leading role .