The author points out near the bottom that “performance” was not one of the original justifications for its UB decisions, afatct.
Your example is a slippery slope but I get your point. I agree that there needs to be a “reasonable UB”
But I’ve moved on from c++.