Actually, the opposite is true.
With all things equal, a hotter air charge has a tendency to detonate more easily, which is why ignition timing is reduced; rather significantly if temps are hot enough.
Hotter air is also less dense. So, while the actual mass of air needed to maintain...