Re:“Pack it in, mathematicians, someone owes LLVM a million ...
by Blaisorblade0 on Friday August 20, 2021 @09:51PM
(#28253352)
Throwing away large chunks of code is what optimizers exist for! Sadly, most discussions of UB only show when it "goes wrong" (has surprising results), not when it goes right!
That's a fair point, but it still feels wrong to me that the compiler can throw away large chunks of code and change the outcome of the function silently.