I read in Earl Palmer's book that Palmer dubbed that solo for the movie.
That is he transcribed it and recorded the solo for the soundtrack.
Elvin was/is everybody's hero,
Onetime I saw him in Toronto with a group that included Sonny Fortune and Ravi Coltrane, with Pat LaBarbera sitting in on every set. Pat lives in Toronto, and of course played with Elvin for many years
Between sets I was talking to Pat who I know, and Elvin came up and after introductions and the big bear hug, Pat told him I was from Rochester. Elvin looked at me, smiled and said; "I used to know a hip dentist in Rochester, ha, ha, ha!"
I got his drift.
Here's on of my photos from 1976: