News for hackers. Stuff that matters.
Re:Intel SA-00145: Lazy FP State Restore by Tuna-Fish on Thursday June 14, 2018 @08:13AM (#17311037)
The compiler cannot compete with the CPU because the CPU has strictly more information. Any memory access can take between 4 and thousands of cycles of time to execute, and the compiler won't know how long any of them take. The CPU can reorder based on exact knowledge.
Re:Intel SA-00145: Lazy FP State Restore by Symmetry on Thursday June 14, 2018 @11:40AM (#17312459)
Using profile guided optimization can help a lot with this in practice, though it isn't perfect.