So many statements of the form 'this UB doesn't actually impact performance' tur...

@david_chisnall@infosec.exchange

So many statements of the form 'this UB doesn't actually impact performance' turn out to be 'compiler optimisations don't explicitly state their axioms'.

Yes, sure, you tell the optimisations that explicitly state that they depend on this UB not to run and it doesn't make a difference. Good. But the other 95% that depend on a property that is true only if the counterexample is UB? Those are still running. You're still getting the speedup from them.

Show me a compiler that formally verifies all of its transforms against a set of declared axioms that arise from the source language's abstract machine and I'll believe your assertion. Otherwise, I know that most of the cases in compilers I've worked on that depend on UB don't track that this is something that they depend on anywhere.