It’s probably worth adding some text to LangRef to specifically say that volatile operations on null are allowed. But yes, LLVM optimizations should be okay with volatile operations on a null pointer.
It’s probably worth adding some text to LangRef to specifically say that volatile operations on null are allowed. But yes, LLVM optimizations should be okay with volatile operations on a null pointer.