The impact of macroscopic epistasis on long-term evolutionary dynamics