What is the impact of inflation on stock market returns?

What is the relationship between inflation rates and the overall performance of stock markets over time?,