An autopsy will be performed on the body of wrestling great Randy Macho Man Savage tomorrow … TMZ has learned.

Officials tells TMZ … later today, Randy’s remains will be transported to the Pinellas County Medical Examiner’s Office … where doctors are scheduled to perform an autopsy on Savage sometime tomorrow.

Savage died after a head-on collision with a tree in Florida this morning … and the wrestler’s brother tells us it all happened after Randy suffered a heart attack behind the wheel.