Dream Lover (1986)
Dream Lover is a 1986 thriller film about a woman who undergoes sleep deprivation therapy after being attacked in her apartment - with unexpected results. The film was directed by Alan J. Pakula, and stars Kristy McNichol, Ben Masters, and Joseph Culp.
More at Wikipedia.