coder
It violates the principle of least surprise. You don’t expect the compiler to delete your bounds checking etc.
The way c and c++ define and use UB is like finding an error at compile time and instead of reporting it, the compiler decides to exploit it.
Should focus on getting rid of undefined behavior.
One of the people reverse engineering the M1 GPU for Asahi Linux is a catgirl vtuber: https://www.youtube.com/asahilina