Compilers are not your enemy. Optimizing compilers do the things they do because that's what the majority of people using them want.
It also mixes in things that have nothing to do with optimizing compilers at all like expecting emulation of 64-bit integers on 32-bit platforms to be constant time when neither the language nor the library in question have ever promised such guarantees. Similar with the constant references to bool as if that's some kind of magical data type where avoiding it gives you whatever guarantees you wish. Sounds more like magical thinking than programming.
I'd file this under "why can't the compiler read my mind and do what I want instead of just what I asked it to".