Try &quot;-fno-strict-overflow -fno-strict-aliasing -fno-delete-null-pointer-checks&quot; and then see if your program gets slower.<p>That won&#x27;t nearly get everything, but loop optimization in C relies on undefined behavior a lot of the time, so you&#x27;ll get to see how much you need it.