7 ms·
Last I heard it was a fragile benchmark stunt, and compilers would enable the optimization in only very limited circumstances. Has there been progress since?
by zurn 10y ago
Last I heard it was a fragile benchmark stunt, and compilers would enable the optimization in only very limited circumstances. Has there been progress since?
- DannyBee 10y agoYes, in the sense that they can do a lot more. It was implemented initially as a fragile stunt. The real problem with it in C based languages is that it requires the real, true, whole program, because it is impossible to not break the ABI of the structure :) In general, memory locality/etc optimizations are more focused on reorganizing loops to walk the data optimally, instead of reorganizing data so normal loops walk them optimally. (See, e.g., polyhedral loop optimizations, which XLC and others ship with. A good paper to read is PLUTO and PLUTO+)
- deleted 10y ago[deleted]