Places where I've seen it, crypto code in OpenSSL.

Trying to zero-ize key material, the compiler sees that "char key[]" isn't used any more, and optimizes-away the memcmp.

Trying to do constant-time math.